Date: | Sun, 4 Oct 2015 22:45:21 +0200 |
Subject: | unsetenv() returns void |
From: | Thomas Bernard <thomas.bernard@cls.to> |
To: | krb5-bugs@mit.edu |
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.
more recent glibc versions follow the POSIX.1-2001-compliant prototype
shown in the SYNOPSIS.
regards,
--
Thomas Bernard - thomas.bernard@cls.to
Conseil Logiciel Securite SAS
1 Passage du Surmelin
75020 Paris
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.
Show quoted text
>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@cls.to
Conseil Logiciel Securite SAS
1 Passage du Surmelin
75020 Paris
Message body not shown because it is not plain text.