Don't use timezone parameter in gettimeofday and settimeofday calls

This commit is contained in:
Miroslav Lichvar
2010-08-12 14:43:26 +02:00
parent 6b0198c2d7
commit 2f2e524bc6
7 changed files with 28 additions and 51 deletions

View File

@@ -1015,7 +1015,6 @@ process_cmd_password(CMD_Request *msg, char *line)
{
char *p, *q;
char *password;
struct timezone tz;
struct timeval now;
p = line;
@@ -1049,7 +1048,7 @@ process_cmd_password(CMD_Request *msg, char *line)
*p = 0;
}
if (gettimeofday(&now, &tz) < 0) {
if (gettimeofday(&now, NULL) < 0) {
printf("500 - Could not read time of day\n");
return 0;
} else {