comparison 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
comparison
equal deleted inserted replaced
63:b455e14ebc5d 64:7250be163ec4
1 /* 1 /*
2 server.c 2 server.c
3 3
4 $Id: server.c 67 2000-05-12 17:19:38Z enz $ 4 $Id: server.c 70 2000-05-12 17:35:00Z enz $
5 */ 5 */
6 6
7 #if HAVE_CONFIG_H 7 #if HAVE_CONFIG_H
8 #include <config.h> 8 #include <config.h>
9 #endif 9 #endif
789 789
790 static unsigned long 790 static unsigned long
791 getTimeInSeconds( unsigned int year, unsigned int mon, unsigned int day, 791 getTimeInSeconds( unsigned int year, unsigned int mon, unsigned int day,
792 unsigned int hour, unsigned int min, unsigned int sec ) 792 unsigned int hour, unsigned int min, unsigned int sec )
793 { 793 {
794 struct tm t = { 0 }; 794 struct tm t;
795 795
796 memset( &t, 0, sizeof( t ) );
796 t.tm_year = year - 1900; 797 t.tm_year = year - 1900;
797 t.tm_mon = mon - 1; 798 t.tm_mon = mon - 1;
798 t.tm_mday = day; 799 t.tm_mday = day;
799 t.tm_hour = hour; 800 t.tm_hour = hour;
800 t.tm_min = min; 801 t.tm_min = min;