Source-Changes archive

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

CVS commit: src/sys/external/bsd/ipf/netinet



Module Name:    src
Committed By:   plunky
Date:           Sat Sep 15 16:56:45 UTC 2012

Modified Files:
        src/sys/external/bsd/ipf/netinet: ip_compat.h ip_fil.h ip_log.c
            ip_nat.h ip_proxy.h

Log Message:
the result of the construct

#define FOO     defined(BAR)

#if FOO
 [conditional code]
#endif

is "undefined", according to C99 6.10.1 note 4. So, change code like
that to use the following paradigm

#if defined(BAR)
#define FOO     1
#else
#define FOO     0
#endif

#if FOO
 [conditional code]
#endif


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/external/bsd/ipf/netinet/ip_compat.h \
    src/sys/external/bsd/ipf/netinet/ip_fil.h \
    src/sys/external/bsd/ipf/netinet/ip_log.c \
    src/sys/external/bsd/ipf/netinet/ip_nat.h \
    src/sys/external/bsd/ipf/netinet/ip_proxy.h

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




Home | Main Index | Thread Index | Old Index