[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 145425] Compile error on Solaris 8 - kdecore/fakes.c has a
From: Stephan Kulow <coolo () kde ! org>
Date: 2007-05-15 8:43:47
Message-ID: 20070515084347.18580.qmail () ktown ! kde ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=145425
coolo kde org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From coolo kde org 2007-05-15 10:43 -------
SVN commit 664939 by coolo:
unsetenv returns int - no idea why it was left unnoticed so long :)
BUG: 145425
M +3 -3 fakes.c
--- trunk/KDE/kdelibs/kdecore/fakes.c #664938:664939
@ -76,8 +76,7 @
extern char ** environ;
#endif
-KDECORE_EXPORT void unsetenv (name)
- const char *name;
+KDECORE_EXPORT int unsetenv (const char *name)
{
size_t len;
char **ep;
@ -85,7 +84,7 @
if (name == NULL || *name == '\0' || strchr (name, '=') != NULL)
{
errno = EINVAL;
- return;
+ return -1;
}
len = strlen (name);
@ -105,6 +104,7 @
else
++ep;
+ return 0;
}
#endif /* !HAVE_UNSETENV */
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic