Skip to content

Commit

Permalink
fix: PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ncvicchi committed Dec 16, 2024
1 parent d91291b commit fdfda1c
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/common/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
add_subdirectory(binaries_op)
add_subdirectory(bzip2_op)
add_subdirectory(config)
add_subdirectory(data_provider)
add_subdirectory(dbsync)
add_subdirectory(error_messages)
add_subdirectory(file_op)
add_subdirectory(filesystem_wrapper)
add_subdirectory(hashHelper)
add_subdirectory(logger)
Expand Down
1 change: 1 addition & 0 deletions src/common/bzip2_op/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ target_include_directories(bzip2_op PUBLIC include)

target_link_libraries(bzip2_op
error_messages
file_op
Logger
pal
time_op
Expand Down
1 change: 1 addition & 0 deletions src/common/bzip2_op/src/bzip2_op.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <stdio.h>
#include <errno.h>
#include "bzip2_op.h"
#include "file_op.h"
#include "error_messages.h"
#include "logger.hpp"

Expand Down
3 changes: 3 additions & 0 deletions src/common/file_op/include/file_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
#include <libproc.h>
#endif

#ifndef WIN32
#define OS_PIDFILE "var/run"
#endif

#define UCS2_LE 1
#define UCS2_BE 2

Expand Down
1 change: 1 addition & 0 deletions src/common/file_op/src/file_op.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "shared.h"
#include "version_op.h"
#include "pal.h"
#include "file_op.h"

#include <zlib.h>

Expand Down
1 change: 1 addition & 0 deletions src/common/logger/include/logger.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <stdarg.h>
#include <string.h>

// Extract file name from path (inline function for C++ and macro for C)
#ifdef __cplusplus
Expand Down
2 changes: 1 addition & 1 deletion src/common/pal/tests/windows/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ add_executable(PalTime_test pal_time_test.cpp)
configure_target(PalTime_test)
target_include_directories(PalTime_test PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
target_link_libraries(PalTime_test PRIVATE pal GTest::gtest GTest::gtest_main)
add_test(NAME PalTimeTest COMMAND PalTime_test)
add_test(NAME PalTimeTest COMMAND PalTime_test)
1 change: 0 additions & 1 deletion src/common/utils/include/shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@

#include "defs.h"
#include "os_err.h"
#include "time_op.h"

#include "os_ip.h"

Expand Down
1 change: 0 additions & 1 deletion src/common/version_op/src/version_op.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ os_info *get_win_version()
LogError("Error reading 'Current Version' from Windows registry. (Error %u)",(unsigned int)dwRet);
}
else {
// TODO: Solve when StrBreak is implemented
char ** parts = OS_StrBreak('.', winver, 2);
info->os_major = strdup(parts[0]);
info->os_minor = strdup(parts[1]);
Expand Down

0 comments on commit fdfda1c

Please sign in to comment.