Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/rdate appease gcc -Wuninitialized and WARNS=3 in on...



details:   https://anonhg.NetBSD.org/src/rev/26bf65820866
branches:  trunk
changeset: 581514:26bf65820866
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu Jun 02 09:20:37 2005 +0000

description:
appease gcc -Wuninitialized and WARNS=3 in one swoop.

diffstat:

 usr.sbin/rdate/rdate.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 0568045386a5 -r 26bf65820866 usr.sbin/rdate/rdate.c
--- a/usr.sbin/rdate/rdate.c    Thu Jun 02 09:19:20 2005 +0000
+++ b/usr.sbin/rdate/rdate.c    Thu Jun 02 09:20:37 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rdate.c,v 1.15 2004/01/05 23:23:38 jmmv Exp $  */
+/*     $NetBSD: rdate.c,v 1.16 2005/06/02 09:20:37 lukem Exp $ */
 
 /*
  * Copyright (c) 1994 Christos Zoulas
@@ -39,7 +39,7 @@
  */
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: rdate.c,v 1.15 2004/01/05 23:23:38 jmmv Exp $");
+__RCSID("$NetBSD: rdate.c,v 1.16 2005/06/02 09:20:37 lukem Exp $");
 #endif /* lint */
 
 #include <sys/types.h>
@@ -79,7 +79,8 @@
        int             slidetime = 0;
        int             adjustment;
        time_t          tim;
-       char           *hname, *emsg;
+       char           *hname;
+       const char     *emsg = NULL;
        struct addrinfo hints, *res, *res0;
        int             c;
        int             error;



Home | Main Index | Thread Index | Old Index