aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dir_monitor.c3
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),