diff options
-rw-r--r-- | include/solaris-compat/compat.h | 2 | ||||
-rw-r--r-- | strcompat.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/solaris-compat/compat.h b/include/solaris-compat/compat.h index b34cf11f4..a40ce4f1d 100644 --- a/include/solaris-compat/compat.h +++ b/include/solaris-compat/compat.h @@ -42,5 +42,5 @@ typedef unsigned int u_int32_t; char* strsep(char** str, const char* delims); int setenv(const char *name, const char *value, int overwrite); -int unsetenv(const char *name); +void unsetenv(const char *name); #endif diff --git a/strcompat.c b/strcompat.c index 38615ac5d..8c9916d23 100644 --- a/strcompat.c +++ b/strcompat.c @@ -50,8 +50,8 @@ int setenv(const char *name, const char *value, int overwrite) return ret; } -int unsetenv(const char *name) +void unsetenv(const char *name) { - setenv(name,"",0); + setenv(name, "", 0); } |