]> git.proxmox.com Git - mirror_lxc.git/commitdiff
add missing paranthesis (v2)
authorS.Çağlar Onur <caglar@10ur.org>
Fri, 15 Nov 2013 04:22:54 +0000 (23:22 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 18 Nov 2013 15:29:27 +0000 (09:29 -0600)
Signed-off-by: S.Çağlar Onur <caglar@10ur.org>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c

index 3cabf0d62a0533077b3957eebc0cc47d5bbf5bc7..11e70cb71c480ee6344259b7fb384239f472faf9 100644 (file)
@@ -2958,9 +2958,9 @@ static bool add_remove_device_node(struct lxc_container *c, char *src_path, char
                goto out;
 
        /* continue if path is character device or block device */
-       if S_ISCHR(st.st_mode)
+       if (S_ISCHR(st.st_mode))
                ret = snprintf(value, MAX_BUFFER, "c %d:%d rwm", major(st.st_rdev), minor(st.st_rdev));
-       else if S_ISBLK(st.st_mode)
+       else if (S_ISBLK(st.st_mode))
                ret = snprintf(value, MAX_BUFFER, "b %d:%d rwm", major(st.st_rdev), minor(st.st_rdev));
        else
                goto out;