diff options
author | Lassi Marttala <lassi.lm.marttala@partner.bmw.com> | 2012-03-13 16:08:07 +0100 |
---|---|---|
committer | Christian Muck <christian.muck@bmw.de> | 2012-04-04 14:27:59 +0200 |
commit | 6e4b6237eaaf4a58906065927fd34c9141459fd9 (patch) | |
tree | e3c0784fb16c3dfeb7be56fb8844044cdca479db | |
parent | afc83af9b5e7ad6b288cf6d93b8da5c6a8628e95 (diff) | |
download | dlt-daemon-6e4b6237eaaf4a58906065927fd34c9141459fd9.tar.gz dlt-daemon-6e4b6237eaaf4a58906065927fd34c9141459fd9.tar.bz2 dlt-daemon-6e4b6237eaaf4a58906065927fd34c9141459fd9.zip |
GDLT-2 Link with libz, fix a typo.
Signed-off-by: Christian Muck <christian.muck@bmw.de>
-rwxr-xr-x | src/system/CMakeLists.txt | 3 | ||||
-rw-r--r-- | src/system/dlt-system-log.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/system/CMakeLists.txt b/src/system/CMakeLists.txt index 18bbb2b..bdd9b8d 100755 --- a/src/system/CMakeLists.txt +++ b/src/system/CMakeLists.txt @@ -16,9 +16,10 @@ set(dlt_system_SRCS dlt-system dlt-system-log) add_executable(dlt-system ${dlt_system_SRCS}) -target_link_libraries(dlt-system dlt) +target_link_libraries(dlt-system dlt z) set_target_properties(dlt-system PROPERTIES LINKER_LANGUAGE C) + install(TARGETS dlt-system RUNTIME DESTINATION bin COMPONENT base) diff --git a/src/system/dlt-system-log.c b/src/system/dlt-system-log.c index 781171e..ac6aa1a 100644 --- a/src/system/dlt-system-log.c +++ b/src/system/dlt-system-log.c @@ -144,7 +144,7 @@ int dlt_system_compress_file(char *src, int level) /* Write to the output file */ comp_count = Z_CHUNK_SZ - strm.avail_out; if (fwrite(buf_out, 1, comp_count, f_out) != comp_count || - ferror(dest)) + ferror(f_out)) { fprintf(stderr, "dlt_system_compress_file: Error while writing file."); fclose(f_in); |