[krbdev.mit.edu #8267] unsetenv() returns void

Thomas Bernard via RT rt-comment at krbdev.mit.edu
Sun Oct 4 19:40:09 EDT 2015


Hello,

I've been trying to build krb5 1.13.2 on my old G4 Power Mac (PPC)
with OS X 10.4.11
I've got the following error in clients/ksu/main.c :
main.c: In function "get_configured_defccname":
main.c:818: error: void value not ignored as it ought to be
*** [main.o] Error 1

indeed, unsetenv() returns void (OS X 10.4) :
man 3 unsetenv
...
     void
     unsetenv(const char *name);
...
HISTORY
     The functions setenv() and unsetenv() appeared in Version 7 AT&T UNIX.

>From a recent linux man :
Prior to glibc 2.2.2, unsetenv() was prototyped as returning void;
more recent glibc versions follow the POSIX.1-2001-compliant prototype
shown in the SYNOPSIS.


regards,
-- 


Thomas Bernard - thomas.bernard at cls.to
Conseil Logiciel Securite SAS
1 Passage du Surmelin
75020 Paris



More information about the krb5-bugs mailing list