bin/71632: [PATCH] cleanup of the usr.sbin/ndp code

Dan Lukes dan at
Sat Sep 11 19:40:33 PDT 2004

>Number:         71632
>Category:       bin
>Synopsis:       [PATCH] cleanup of the usr.sbin/ndp code
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 12 02:40:32 GMT 2004
>Originator:     Dan Lukes
>Release:        FreeBSD 5.3-BETA3 i386
System: FreeBSD 5.3-BETA3 FreeBSD 5.3-BETA3 #8: Sun Sep 5 07:06:40 CEST 2004 dan at i386
usr.sbin/ndp/ndp.c,v 1.16 2004/08/07 04:27:51 imp
	There are more than 5000 warnings issued during "make buildworld".
Some of them are false positives, but some of them are sign of true errors.

	Nobody is upset by warnings due it's amount, so some errors remain

	I want to cleanup the code-base from warnings, so warnings will
become "attention mark" again.

usr.sbin/ndp/ndp.c:1000: warning: 'rbuf' might be used uninitialized in this function
*** usr.sbin/ndp/ndp.c.ORIG	Sun Aug  8 21:13:32 2004
--- usr.sbin/ndp/ndp.c	Sun Sep 12 00:30:09 2004
*** 1013,1018 ****
--- 1013,1021 ----
  				printf("\nRandom ID:      ");
  				rbuf = ND.randomid;
+ 			default:
+ 				rbuf = NULL;
+ 				break;
  			for (j = 0; j < 8; j++)
  				printf("%02x", rbuf[j]);

More information about the freebsd-bugs mailing list