diff options
| author | Thorsten Töpper <atsutane@freethoughts.de> | 2025-06-14 16:14:11 +0200 |
|---|---|---|
| committer | Thorsten Töpper <atsutane@freethoughts.de> | 2025-06-14 16:14:11 +0200 |
| commit | cc3aa31b5d24950b19e4ea568628bec4a8e4e19d (patch) | |
| tree | a97ac4b2462560f571345b62083f7deb48fa5fdd /dir_monitor.c | |
| parent | 09f39518f23f0bd59ace2f72c3f3717c5e64f9a6 (diff) | |
| download | dir_monitor-cc3aa31b5d24950b19e4ea568628bec4a8e4e19d.tar.gz dir_monitor-cc3aa31b5d24950b19e4ea568628bec4a8e4e19d.tar.bz2 | |
formatting
Diffstat (limited to 'dir_monitor.c')
| -rw-r--r-- | dir_monitor.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dir_monitor.c b/dir_monitor.c index 8ff6781..9e993a8 100644 --- a/dir_monitor.c +++ b/dir_monitor.c @@ -57,6 +57,7 @@ void print_list(struct list_head *list); void set_option(const char *option_name, char *option_argument); + /* === GLOBAL VARIABLES === */ struct option long_options[] = { { "show-hidden-entries", no_argument, 0, 0 }, @@ -67,6 +68,7 @@ bool option_show_hidden_entries = false; bool option_timestamp_long = false; + /* === IMPLEMENTATION === */ inline struct list_node *create_node(char *fname, size_t fsize, time_t ftime) { struct list_node *node = NULL; @@ -179,6 +181,7 @@ void print_list(struct list_head *list) { size_t total_size = 0; if (list == NULL) return; + ptr = list->first; while (ptr != NULL) { printf(" %8lu %2s ", ((ptr->fsize>=1024) ? (ptr->fsize/1024) : ptr->fsize), |
