]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cmd: Use parenthesis around complex macro
authorTobin C. Harding <me@tobin.cc>
Fri, 17 Aug 2018 05:42:32 +0000 (15:42 +1000)
committerTobin C. Harding <me@tobin.cc>
Fri, 17 Aug 2018 05:42:32 +0000 (15:42 +1000)
checkpatch emits error:

    ERROR: Macros with complex values should be enclosed in parentheses

Safeguard macro by use of parenthesis.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
src/lxc/cmd/lxc_init.c

index 7f47cbddb27f9050152127142e879145a1e77a47..86577e2454b2d6e4ff4ba7536ebe301c77101354 100644 (file)
@@ -47,7 +47,7 @@
 
 /* option keys for long only options */
 #define OPT_USAGE 0x1000
-#define OPT_VERSION OPT_USAGE - 1
+#define OPT_VERSION (OPT_USAGE - 1)
 
 #define QUOTE(macro) #macro
 #define QUOTEVAL(macro) QUOTE(macro)