From 7173a92eeeb7b4b4bdb17f9064fede35bec87dd4 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 31 Jan 2017 09:02:45 +0100 Subject: call: Fix argument of time() to time(NULL). Signed-off-by: Ralf Baechle --- call/call.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'call/call.c') diff --git a/call/call.c b/call/call.c index 1d18bdc..ae95c14 100644 --- a/call/call.c +++ b/call/call.c @@ -563,7 +563,7 @@ static char * unix_to_sfbin_date_string(time_t gmt) static char buf[9]; unsigned short s_time, s_date; - date_unix2dos(((gmt == -1) ? time(0) : gmt), &s_time, &s_date); + date_unix2dos(((gmt == -1) ? time(NULL) : gmt), &s_time, &s_date); sprintf(buf, "%X", ((s_date << 16) + s_time)); return buf; } @@ -949,7 +949,7 @@ int start_ab_download(int mode, WINDOW ** swin, wint * wintab, } if (!time_set) { - time_t t = time(0); + time_t t = time(NULL); memcpy(&ft, localtime(&t), sizeof(struct tm)); gp->ut.actime = mktime(localtime(&t)); gp->ut.modtime = gp->ut.actime; @@ -2504,7 +2504,7 @@ static int cmd_call(char *call[], int mode, int encoding) if (!fstat(uploadfile, &statbuf)) file_time = statbuf.st_mtime; else - file_time = time(0); + file_time = time(NULL); do { upllen = -- cgit v1.2.3