Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet People have to read this code, so I am removing ...



details:   https://anonhg.NetBSD.org/src/rev/a12b04086326
branches:  trunk
changeset: 584473:a12b04086326
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Mon Sep 19 05:28:46 2005 +0000

description:
People have to read this code, so I am removing the double-negative
tautology, #ifndef notdef, which is not only superfluous, but easily
misread as #ifdef notyet.

diffstat:

 sys/netinet/ip_output.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r 2c152e98c18f -r a12b04086326 sys/netinet/ip_output.c
--- a/sys/netinet/ip_output.c   Mon Sep 19 03:18:00 2005 +0000
+++ b/sys/netinet/ip_output.c   Mon Sep 19 05:28:46 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_output.c,v 1.157 2005/09/11 22:15:19 seb Exp $      */
+/*     $NetBSD: ip_output.c,v 1.158 2005/09/19 05:28:46 dyoung Exp $   */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -98,7 +98,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.157 2005/09/11 22:15:19 seb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.158 2005/09/19 05:28:46 dyoung Exp $");
 
 #include "opt_pfil_hooks.h"
 #include "opt_inet.h"
@@ -470,14 +470,12 @@
 
                goto sendit;
        }
-#ifndef notdef
        /*
         * If source address not specified yet, use address
         * of outgoing interface.
         */
        if (in_nullhost(ip->ip_src))
                ip->ip_src = ia->ia_addr.sin_addr;
-#endif
 
        /*
         * packets with Class-D address as source are not valid per



Home | Main Index | Thread Index | Old Index