diff options
author | Lassi Marttala <lassi.lm.marttala@partner.bmw.de> | 2012-06-04 11:53:10 +0200 |
---|---|---|
committer | Christian Muck <christian.muck@bmw.de> | 2012-06-13 23:53:01 +0200 |
commit | 54daad6cc95fb66662c894fabb5fd18308eec6e0 (patch) | |
tree | 5c20a58a362133d3bdde143851209f17a458bbbc /src/system/dlt-system-filetransfer.c | |
parent | 85f564f2b4c580bc151d05559e6ed0614919da8a (diff) | |
download | DLT-daemon-54daad6cc95fb66662c894fabb5fd18308eec6e0.tar.gz |
[GDLT-93]: Add -Wextra flags for compilation
Fixed all the warnings that popped up with the new flag.
Signed-off-by: Christian Muck <christian.muck@bmw.de>
Diffstat (limited to 'src/system/dlt-system-filetransfer.c')
-rw-r--r-- | src/system/dlt-system-filetransfer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/system/dlt-system-filetransfer.c b/src/system/dlt-system-filetransfer.c index 275818e..7eb6e92 100644 --- a/src/system/dlt-system-filetransfer.c +++ b/src/system/dlt-system-filetransfer.c @@ -102,7 +102,7 @@ char *compress_file(char *src, int level) FILE *src_file; dst_file = gzopen(dst, dst_mode); - if(dst_file < 0) + if(dst_file == Z_NULL) { free(dst); return NULL; @@ -110,7 +110,7 @@ char *compress_file(char *src, int level) src_file = fopen(src, "r"); - if(src_file < 0) + if(src_file == NULL) { gzclose(dst_file); free(dst); @@ -217,7 +217,7 @@ int flush_dir(FiletransferOptions opts, int which) DIR *dir; dir = opendir(sdir); - if(dir > 0) + if(dir != NULL) { while((dp = readdir(dir)) != NULL) { |