platform/posix.c
changeset 249 fed886543e40
parent 240 052041af9001
child 251 0f4615263e32
--- a/platform/posix.c	Sat May 25 23:49:43 2002 +0000
+++ b/platform/posix.c	Mon May 27 19:10:45 2002 +0000
@@ -54,7 +54,7 @@
 
     if (envr != NULL)
     {
-        retval = malloc(strlen(envr) + 1);
+        retval = (char *) malloc(strlen(envr) + 1);
         if (retval != NULL)
             strcpy(retval, envr);
     } /* if */
@@ -72,7 +72,7 @@
     pw = getpwuid(uid);
     if ((pw != NULL) && (pw->pw_name != NULL))
     {
-        retval = malloc(strlen(pw->pw_name) + 1);
+        retval = (char *) malloc(strlen(pw->pw_name) + 1);
         if (retval != NULL)
             strcpy(retval, pw->pw_name);
     } /* if */
@@ -90,7 +90,7 @@
     pw = getpwuid(uid);
     if ((pw != NULL) && (pw->pw_dir != NULL))
     {
-        retval = malloc(strlen(pw->pw_dir) + 1);
+        retval = (char *) malloc(strlen(pw->pw_dir) + 1);
         if (retval != NULL)
             strcpy(retval, pw->pw_dir);
     } /* if */
@@ -188,7 +188,7 @@
     int len = ((prepend) ? strlen(prepend) : 0) +
               ((append) ? strlen(append) : 0) +
               strlen(dirName) + 1;
-    char *retval = malloc(len);
+    char *retval = (char *) malloc(len);
 
     BAIL_IF_MACRO(retval == NULL, ERR_OUT_OF_MEMORY, NULL);
 
@@ -225,7 +225,7 @@
     {
         dlen = strlen(dirname);
         bufsize = dlen + 256;
-        buf = malloc(bufsize);
+        buf = (char *) malloc(bufsize);
         BAIL_IF_MACRO(buf == NULL, ERR_OUT_OF_MEMORY, NULL);
         strcpy(buf, dirname);
         if (buf[dlen - 1] != '/')