From: Jeremy Harris Date: Sun, 10 Apr 2016 19:45:46 +0000 (+0100) Subject: tidying: char signedness X-Git-Tag: exim-4_88_RC1~122 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f8c0a35cdf7181196ceda8e10ab38757c80b3e80;p=exim.git tidying: char signedness --- diff --git a/src/OS/os.c-BSDI b/src/OS/os.c-BSDI index 03a7a1cef..3cef2ac6d 100644 --- a/src/OS/os.c-BSDI +++ b/src/OS/os.c-BSDI @@ -12,8 +12,8 @@ src/os.c file. */ #define OS_UNSETENV int -os_unsetenv(const uschar * name) +os_unsetenv(const unsigned char * name) { -unsetenv(CS name); +unsetenv((char *)name); return 0; } diff --git a/src/src/os.c b/src/src/os.c index 1cde1b8ec..b0adc587a 100644 --- a/src/src/os.c +++ b/src/src/os.c @@ -844,9 +844,9 @@ os_get_dns_resolver_res(void) #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 @@ -862,24 +862,24 @@ may not even do this. If the OS supports getcwd(NULL, 0) we'll use 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 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; 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 (!(buffer = getcwd((char *)buffer, size))) return NULL; +return realloc((char *)buffer, strlen(buffer) + 1); } #endif