summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2017-09-06 11:53:02 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2017-09-06 11:53:02 +1000
commitea82ececbf85a7ac3d0931687f44c57534fde17c (patch)
treeab9a431ce1af9d778eb83fc933d1b58fedb63534 /test
parente12e02b2e6ee4582ba902ec1d1e5309abc78e282 (diff)
test: fix compiler warning
signal-logging.c:182:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test')
-rw-r--r--test/signal-logging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/signal-logging.c b/test/signal-logging.c
index b00ee588e..9bf39e58d 100644
--- a/test/signal-logging.c
+++ b/test/signal-logging.c
@@ -179,7 +179,7 @@ static void logging_format(void)
strcpy(&buf[sizeof(buf) - 4], "end");
LogInit(log_file_path, NULL);
- assert(f = fopen(log_file_path, "r"));
+ assert((f = fopen(log_file_path, "r")));
#define read_log_msg(msg) do { \
msg = fgets(read_buf, sizeof(read_buf), f); \