]> git.ozlabs.org Git - ppp.git/commit
pppd: Eliminate some unnecessary ifdefs
authorPaul Mackerras <paulus@samba.org>
Sun, 9 Mar 2014 06:48:07 +0000 (17:48 +1100)
committerPaul Mackerras <paulus@samba.org>
Sun, 9 Mar 2014 06:48:07 +0000 (17:48 +1100)
commitde8da14d845ee6db9236ccfddabf1d8ebf045ddb
tree99ca3aafcf32fef5fcbb695e581e4cd520f89d89
parent50967962addebe15c7a7e63116ff46a0441dc464
pppd: Eliminate some unnecessary ifdefs

Since we only support Linux and Solaris these days, statements like:

#if defined(SOL2) || defined(__linux__)

are always true and can be removed, along with anything in the #else
branch of such a #if, and anything within a #if with the inverse
condition.  Furthermore, inside a #if !defined(__linux__) we know
that SOL2 must be defined.

This simplifies the code along these lines.

Signed-off-by: Paul Mackerras <paulus@samba.org>
pppd/ipv6cp.c
pppd/ipv6cp.h