Skip to content

Commit

Permalink
dlt_multiple_files: remove superfluous mode bits and add header file …
Browse files Browse the repository at this point in the history
…to header list (#462)

Signed-off-by: LUU QUANG MINH <[email protected]>
  • Loading branch information
minminlittleshrimp authored Apr 12, 2023
1 parent 9212d3b commit fae02b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/dlt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ configure_file(dlt_user.h.in dlt_user.h)

set(HEADER_LIST dlt.h dlt_user_macros.h dlt_client.h dlt_protocol.h
dlt_common.h dlt_types.h dlt_shm.h dlt_offline_trace.h
dlt_filetransfer.h dlt_common_api.h
dlt_filetransfer.h dlt_common_api.h dlt_multiple_files.h
${CMAKE_CURRENT_BINARY_DIR}/dlt_version.h
${CMAKE_CURRENT_BINARY_DIR}/dlt_user.h)

Expand Down
5 changes: 2 additions & 3 deletions src/shared/dlt_multiple_files.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include <errno.h>
#include <stdarg.h>

#include <dlt_multiple_files.h>
#include "dlt_multiple_files.h"
#include "dlt_common.h"

unsigned int multiple_files_buffer_storage_dir_info(const char *path, const char *file_name,
Expand Down Expand Up @@ -399,8 +399,7 @@ DltReturnValue multiple_files_buffer_open_file_for_append(MultipleFilesRingBuffe

/* open DLT output file */
errno = 0;
files_buffer->ohandle = open(file_path, O_WRONLY | O_APPEND, S_IRUSR | S_IWUSR |
S_IRGRP | S_IROTH); /* mode: wb */
files_buffer->ohandle = open(file_path, O_WRONLY | O_APPEND); /* mode: wb */

return files_buffer->ohandle == -1 ? DLT_RETURN_ERROR : DLT_RETURN_OK;
}
Expand Down

0 comments on commit fae02b4

Please sign in to comment.