summaryrefslogtreecommitdiffstats
path: root/call/call.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-01-31 09:02:45 +0100
committerRalf Baechle <ralf@linux-mips.org>2017-01-31 09:02:45 +0100
commit7173a92eeeb7b4b4bdb17f9064fede35bec87dd4 (patch)
tree82419172547f19e1bdd664ff5ef53b1fcfe06c85 /call/call.c
parent73084915ad5bc772ad9278c8292caf7a42cf8b65 (diff)
call: Fix argument of time() to time(NULL).
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'call/call.c')
-rw-r--r--call/call.c6
1 files changed, 3 insertions, 3 deletions
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 =