From 54daad6cc95fb66662c894fabb5fd18308eec6e0 Mon Sep 17 00:00:00 2001 From: Lassi Marttala Date: Mon, 4 Jun 2012 11:53:10 +0200 Subject: [GDLT-93]: Add -Wextra flags for compilation Fixed all the warnings that popped up with the new flag. Signed-off-by: Christian Muck --- src/system/dlt-system-processes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/system/dlt-system-processes.c') diff --git a/src/system/dlt-system-processes.c b/src/system/dlt-system-processes.c index fc46c97..ee37bfc 100644 --- a/src/system/dlt-system-processes.c +++ b/src/system/dlt-system-processes.c @@ -76,7 +76,7 @@ void send_process(LogProcessOptions popts, int n) /* go through all process files in directory */ DIR *dir = opendir("/proc"); - if(dir>0) + if(dir != NULL) { while ((dp=readdir(dir)) != NULL) { @@ -85,7 +85,7 @@ void send_process(LogProcessOptions popts, int n) buffer[0] = 0; sprintf(filename, "/proc/%s/cmdline",dp->d_name); pFile = fopen(filename, "r"); - if(pFile>0) + if(pFile != NULL) { bytes = fread(buffer, 1, sizeof(buffer)-1, pFile); fclose(pFile); @@ -96,7 +96,7 @@ void send_process(LogProcessOptions popts, int n) found = 1; sprintf(filename, "/proc/%s/%s", dp->d_name,popts.Filename[n]); pFile = fopen(filename, "r"); - if(pFile>0) + if(pFile != NULL) { bytes = fread(buffer, 1, sizeof(buffer)-1, pFile); fclose(pFile); -- cgit v1.2.1