diff options
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) { |
