command.c: cast members of struct timeval to long unsigned
authorAndre <maan@p133.(none)>
Thu, 20 Apr 2006 17:56:39 +0000 (19:56 +0200)
committerAndre <maan@p133.(none)>
Thu, 20 Apr 2006 17:56:39 +0000 (19:56 +0200)
This should fix

command.c:441: warning: format '%lu' expects type 'long unsigned int', but argument 31 has type 'suseconds_t'

on MacOs.

command.c

index 43c02ff..e625990 100644 (file)
--- a/command.c
+++ b/command.c
@@ -436,7 +436,9 @@ static char *get_status(struct misc_meta_data *nmmd)
                status_item_list[SI_STREAM_START],
                        (long unsigned)nmmd->stream_start.tv_sec,
                        (long unsigned)nmmd->stream_start.tv_usec,
-               status_item_list[SI_CURRENT_TIME], now.tv_sec, now.tv_usec
+               status_item_list[SI_CURRENT_TIME],
+                       (long unsigned)now.tv_sec,
+                       (long unsigned)now.tv_usec
 
        );
        free(bar);