#if !defined(OS_UNSETENV)
int
-os_unsetenv(const uschar * name)
+os_unsetenv(const unsigned char * name)
{
-return unsetenv(CS name);
+return unsetenv((char *)name);
}
#endif
this, for all other systems we provide our own getcwd() */
#if !defined(OS_GETCWD)
-uschar *
-os_getcwd(uschar * buffer, size_t size)
+unsigned char *
+os_getcwd(unsigned char * buffer, size_t size)
{
-return getcwd(CS buffer, size);
+return (unsigned char *) getcwd((char *)buffer, size);
}
#else
#ifndef PATH_MAX
# define PATH_MAX 4096
#endif
-uschar *
-os_getcwd(uschar * buffer, size_t size)
+unsigned char *
+os_getcwd(unsigned char * buffer, size_t size)
{
-void *rc;
+char * b = (char *)buffer;
if (!size) size = PATH_MAX;
-if (!buffer && !(buffer = US malloc(size))) return NULL;
-if (!(buffer = getcwd(CS buffer, size))) return NULL;
-return realloc(CS buffer, strlen(buffer) + 1);
+if (!b && !(b = malloc(size))) return NULL;
+if (!(b = getcwd(b, size))) return NULL;
+return buffer ? buffer : realloc(b, strlen(b) + 1);
}
#endif