CVSROOT:        /cvs
Module name:    src
Changes by:     guent...@cvs.openbsd.org        2013/03/07 01:54:53

Modified files:
        usr.bin/getconf: getconf.c 

Log message:
Remove a couple duplicates entries that snuck in.
Per POSIX, if confstr() returns zero without setting errno ("no
defined value") then print "undefined\n".
Don't include a pointless number in the error messasge if confstr() fails.
Above pointed out by Andres Perera (andres.p (at) zoho.com)

Orgranize the CONFSTR code like the SYSCONF and PATHCONF cases.
Don't test for confstr() returning (size_t)-1, as that's not special.
Delete lint comments and unnecessary casts.

Reply via email to