git: ppp: Avoid gcc warnings.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Wed Oct 19 08:32:58 PDT 2016


commit cb86d4af7da9183ae75485d46c81b4c5d135710e
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Wed Oct 12 08:19:49 2016 +0300

    ppp: Avoid gcc warnings.
    
    ncprange_getip4mask() will not initialize mask for cases other than AF_INET
    so give default value of INADDR_ANY (0x0) even if compiler misses that
    ncprange_getip4mask() called only for AF_INET case in main function.

Summary of changes:
 usr.sbin/ppp/iface.c | 2 ++
 usr.sbin/ppp/ipcp.c  | 2 ++
 2 files changed, 4 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cb86d4af7da9183ae75485d46c81b4c5d135710e


-- 
DragonFly BSD source repository


More information about the Commits mailing list