changeset 64:7250be163ec4 noffle

[svn] Avoid compiler warnings about incomplete initializer blocks
author enz
date Fri, 12 May 2000 18:35:00 +0100
parents b455e14ebc5d
children b225619a1ba1
files src/post.c src/server.c
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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 )
--- 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;