From: Andre Date: Thu, 20 Apr 2006 17:56:39 +0000 (+0200) Subject: command.c: cast members of struct timeval to long unsigned X-Git-Tag: v0.2.12~38 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=5d506faba5e49d3fc7eecb5b7d80b515241871d4 command.c: cast members of struct timeval to long unsigned This should fix command.c:441: warning: format '%lu' expects type 'long unsigned int', but argument 31 has type 'suseconds_t' on MacOs. --- diff --git a/command.c b/command.c index 43c02ff9..e6259902 100644 --- 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);