[2/2] util: add parameter parenthesis to __open_proc statement in expr

Submitted by Dmitry Safonov on April 21, 2016, 11:27 a.m.

Details

Message ID 1461238051-30368-3-git-send-email-dsafonov@virtuozzo.com
State Accepted
Series "Loginuid small fixes"
Commit a7f65ebbddb1b1d65cb9f9f26c308055d60ba201
Headers show

Patch hide | download patch | download mbox

diff --git a/criu/include/util.h b/criu/include/util.h
index 2d6fa590e7ab..8efa1a849bb7 100644
--- a/criu/include/util.h
+++ b/criu/include/util.h
@@ -79,7 +79,7 @@  extern int do_open_proc(pid_t pid, int flags, const char *fmt, ...);
 	({								\
 		int __fd = do_open_proc(pid, flags,			\
 					fmt, ##__VA_ARGS__);		\
-		if (__fd < 0 && (errno != ier))				\
+		if (__fd < 0 && (errno != (ier)))			\
 			pr_perror("Can't open %d/" fmt " on procfs",	\
 					pid, ##__VA_ARGS__);		\
 									\