]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 43c02ff91a259639fd9a1e580eae56a2cac29b8d..e625990213b295b9be3577db3670dbc6d80f3427 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);