Mercurial > noffle
diff src/server.c @ 64:7250be163ec4 noffle
[svn] Avoid compiler warnings about incomplete initializer blocks
author | enz |
---|---|
date | Fri, 12 May 2000 18:35:00 +0100 |
parents | adf0af5152f7 |
children | 21e778b6c3e9 |
line wrap: on
line diff
--- a/src/server.c Fri May 12 18:28:37 2000 +0100 +++ b/src/server.c Fri May 12 18:35:00 2000 +0100 @@ -1,7 +1,7 @@ /* server.c - $Id: server.c 67 2000-05-12 17:19:38Z enz $ + $Id: server.c 70 2000-05-12 17:35:00Z enz $ */ #if HAVE_CONFIG_H @@ -791,8 +791,9 @@ getTimeInSeconds( unsigned int year, unsigned int mon, unsigned int day, unsigned int hour, unsigned int min, unsigned int sec ) { - struct tm t = { 0 }; + struct tm t; + memset( &t, 0, sizeof( t ) ); t.tm_year = year - 1900; t.tm_mon = mon - 1; t.tm_mday = day;