Module Name:    src
Committed By:   he
Date:           Mon Apr 13 10:03:58 UTC 2009

Modified Files:
        src/usr.bin/mail: send.c

Log Message:
Do the -Wuninitialized workaround in a way which conforms to our
style guide, and remove a now unneeded LINTED comment.  From private
feedback.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/usr.bin/mail/send.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/mail/send.c
diff -u src/usr.bin/mail/send.c:1.35 src/usr.bin/mail/send.c:1.36
--- src/usr.bin/mail/send.c:1.35	Sun Apr 12 22:47:39 2009
+++ src/usr.bin/mail/send.c	Mon Apr 13 10:03:58 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: send.c,v 1.35 2009/04/12 22:47:39 he Exp $	*/
+/*	$NetBSD: send.c,v 1.36 2009/04/13 10:03:58 he Exp $	*/
 
 /*
  * Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)send.c	8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: send.c,v 1.35 2009/04/12 22:47:39 he Exp $");
+__RCSID("$NetBSD: send.c,v 1.36 2009/04/13 10:03:58 he Exp $");
 #endif
 #endif /* not lint */
 
@@ -655,16 +655,16 @@
 ncopy(struct name *np)
 {
 	struct name *rv;
-	struct name *lp = NULL; /* XXX gcc -Wuninitialized sh3 */
+	struct name *lp;
 	struct name *tp;
 
+	lp = NULL; /* XXX gcc -Wuninitialized sh3 */
 	rv = NULL;
 	for (/*EMPTY*/; np; np = np->n_flink) {
 		tp = nalloc(np->n_name, np->n_type);
 		if (rv == NULL)
 			rv = tp;
 		else {
-			/*LINTED*/
 			lp->n_flink = tp;
 			tp->n_blink = lp;
 		}

Reply via email to