Browse Source

rename file

master
Alex 'AdUser' Z 8 years ago
parent
commit
38bf637ecb
  1. 6
      src/CMakeLists.txt
  2. 2
      src/common.h
  3. 0
      src/strlcpy.c
  4. 0
      src/strlcpy.h
  5. 8
      t/CMakeLists.txt

6
src/CMakeLists.txt

@ -1,15 +1,15 @@
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(SOURCES "main.c" "strlfuncs.c" "logfile.c" "log.c" "matches.c" "ipaddr.c" "filelist.c" "filter.c" "config.c" "jail.c" "backend.c")
set(SOURCES "main.c" "strlcpy.c" "logfile.c" "log.c" "matches.c" "ipaddr.c" "filelist.c" "filter.c" "config.c" "jail.c" "backend.c")
add_executable("f2b" ${SOURCES})
target_link_libraries(f2b "dl")
set(SOURCES "strlfuncs.c" "backend-test.c" "log.c" "config.c" "backend.c")
set(SOURCES "strlcpy.c" "backend-test.c" "log.c" "config.c" "backend.c")
add_executable("backend-test" ${SOURCES})
target_link_libraries("backend-test" "dl")
set(SOURCES "strlfuncs.c" "filter-test.c" "log.c" "config.c" "filter.c")
set(SOURCES "strlcpy.c" "filter-test.c" "log.c" "config.c" "filter.c")
add_executable("filter-test" ${SOURCES})
target_link_libraries("filter-test" "dl")

2
src/common.h

@ -24,7 +24,7 @@
#include <time.h>
#include <unistd.h>
#include "strlfuncs.h"
#include "strlcpy.h"
#define UNUSED(x) (void)(x)

0
src/strlfuncs.c → src/strlcpy.c

0
src/strlfuncs.h → src/strlcpy.h

8
t/CMakeLists.txt

@ -2,10 +2,10 @@ enable_testing()
set(SRC_DIR "../src")
add_executable("t_logfile" "t_logfile.c" "${SRC_DIR}/strlfuncs.c" "${SRC_DIR}/logfile.c")
add_executable("t_matches" "t_matches.c" "${SRC_DIR}/strlfuncs.c" "${SRC_DIR}/matches.c")
add_executable("t_ipaddr" "t_ipaddr.c" "${SRC_DIR}/strlfuncs.c" "${SRC_DIR}/matches.c" "${SRC_DIR}/ipaddr.c")
add_executable("t_config_param" "t_config_param.c" "${SRC_DIR}/strlfuncs.c" "${SRC_DIR}/config.c" "${SRC_DIR}/log.c")
add_executable("t_logfile" "t_logfile.c" "${SRC_DIR}/strlcpy.c" "${SRC_DIR}/logfile.c")
add_executable("t_matches" "t_matches.c" "${SRC_DIR}/strlcpy.c" "${SRC_DIR}/matches.c")
add_executable("t_ipaddr" "t_ipaddr.c" "${SRC_DIR}/strlcpy.c" "${SRC_DIR}/matches.c" "${SRC_DIR}/ipaddr.c")
add_executable("t_config_param" "t_config_param.c" "${SRC_DIR}/strlcpy.c" "${SRC_DIR}/config.c" "${SRC_DIR}/log.c")
add_test("tests/f2b_logfile_*" "t_logfile")
add_test("tests/f2b_matches_*" "t_matches")

Loading…
Cancel
Save