diff options
| author | Thorsten Töpper <atsutane@freethoughts.de> | 2025-06-16 20:20:20 +0200 |
|---|---|---|
| committer | Thorsten Töpper <atsutane@freethoughts.de> | 2025-06-16 20:20:20 +0200 |
| commit | be8f8a9f4caa883e3de98b276cdad55d4fc65c0d (patch) | |
| tree | 40148ab39566cfa614ca9a5e64049ff54cdd1e84 /src/list_management.c | |
| parent | 62e45906f1ffcaa2e3039a4306c01465c3eadfd8 (diff) | |
| download | dir_monitor-be8f8a9f4caa883e3de98b276cdad55d4fc65c0d.tar.gz dir_monitor-be8f8a9f4caa883e3de98b276cdad55d4fc65c0d.tar.bz2 | |
CMakeLists: hardening flags
Diffstat (limited to 'src/list_management.c')
| -rw-r--r-- | src/list_management.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/list_management.c b/src/list_management.c index 634b884..3b02d7f 100644 --- a/src/list_management.c +++ b/src/list_management.c @@ -15,9 +15,10 @@ /* === IMPLEMENTATION === */ -inline struct list_node *create_node(char *fname, size_t fsize, time_t ftime) { + +inline struct list_node *create_node(char *fname, off_t fsize, time_t ftime) { struct list_node *node = NULL; - + if (fname == NULL || fname[0] == '\0') { LOGERR("ERROR: No valid filename given\n"); return NULL; @@ -97,7 +98,6 @@ inline int insert_sorted_by_time(struct list_head *list, struct list_node *node) INSERT_BY_NUMERIC_FIELD(list, node, ftime); return -3; } -#undef INSERT_BY_NUMERIC_FIELD struct list_head *create_list_sort_reversed(struct list_head *list) { |
