# HG changeset patch # User enz # Date 958152900 -3600 # Node ID 7250be163ec4bfb3ce603289c150fe225a7272a4 # Parent b455e14ebc5da4491be5c5a9872f40d6ff5b39c0 [svn] Avoid compiler warnings about incomplete initializer blocks diff -r b455e14ebc5d -r 7250be163ec4 src/post.c --- a/src/post.c Fri May 12 18:28:37 2000 +0100 +++ b/src/post.c Fri May 12 18:35:00 2000 +0100 @@ -1,7 +1,7 @@ /* post.c - $Id: post.c 60 2000-05-09 22:28:38Z uh1763 $ + $Id: post.c 70 2000-05-12 17:35:00Z enz $ */ #if HAVE_CONFIG_H @@ -39,7 +39,7 @@ struct OverInfo over; }; -static struct Article article = { NULL, FALSE }; +static struct Article article = { NULL, FALSE, { "", "", "", "", "", 0, 0 } }; static void getOverInfo( struct OverInfo * o ) diff -r b455e14ebc5d -r 7250be163ec4 src/server.c --- 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;