Commit Graph
8 Commits
Author SHA1 Message Date
Grigory Trenin 8636464880 tests: replace strcpy() with strlcpy()
- Replaced strcpy() with strlcpy() in test files
- Added linking to libcommon.a (and its dependency libnettle)
  as not all systems provide strlcpy()
- Centralized syslog_open variable by moving it from multiple definitions
  in main.c, worker.c, and test files into log.c. This avoids duplication
  and resolves a linking conflict with libcommon.a

Signed-off-by: Grigory Trenin <grigory.trenin@gmail.com>
2026-01-07 15:46:16 -05:00
Nikos Mavrogiannopoulos 78c65b5adf Updated code to follow with kernel coding style
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2024-12-01 17:01:05 +01:00
Nikos Mavrogiannopoulos f0067ae0ea Cleanup of the logging subsystem; allow logging to stderr only
Separated the logging logically from any remaining debugging
features. Introduced command line option for logging to stderr
only (for systemd and containers). The default log level is set
to (2) info.

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2023-12-15 13:04:40 +01:00
Dimitri Papadopoulos d6d5680249 Bad function definition - int main() should be int main(void)
Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
2023-06-04 14:33:59 +02:00
Nikos Mavrogiannopoulos 45c2fb55c8 tests: avoid source dependencies from other dirs in Makefile
That causes compilation errors under certain cirquimstances.
2015-11-19 14:35:16 +01:00
Nikos Mavrogiannopoulos ae1457f49b tests: ipv4-prefix: added checks for ipv4_route_to_cidr 2015-10-30 14:39:38 +01:00
Nikos Mavrogiannopoulos 1879891210 tests: ipv4-prefix updated for new function name 2015-10-29 23:22:35 +01:00
Nikos Mavrogiannopoulos 353e5018ef tests: added unit test for ipv4_prefix_to_mask() 2015-05-07 08:50:33 +02:00