diff options
Diffstat (limited to 'src')
-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); |