xstat: Don't cast returns from malloc()
[openafs.git] / src / xstat / xstat_fs_callback.c
index 7e5fd5d..05c3e4d 100644 (file)
 
 #include <afsconfig.h>
 #include <afs/param.h>
+
+#include <roken.h>
+
 #ifdef AFS_NT40_ENV
 #include <windows.h>
 #include <rpc.h>
 #endif
 
-
-#include <errno.h>
-#include <stdio.h>             /*Standard I/O stuff */
-#include <string.h>
-
 #include <afs/afscbint.h>      /*Callback interface defs */
 #include <afs/afsutil.h>
 
@@ -698,7 +696,7 @@ SRXAFSCB_GetLocalCell(struct rx_call * a_call, char **a_name)
 {
     char *t_name;
 
-    t_name = (char *)malloc(AFSNAMEMAX);
+    t_name = malloc(AFSNAMEMAX);
     if (!t_name)
        return ENOMEM;
     strcpy(t_name, "This is xstat_fs");