Commented out a printf() and cleaned up some mallocs.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 14 Mar 2005 11:47:42 +0000
changeset 689 204bb201498a
parent 688 067a55bf46ba
child 690 c34d1027aad0
Commented out a printf() and cleaned up some mallocs.
test/test_physfs.c
--- a/test/test_physfs.c	Mon Mar 14 07:33:37 2005 +0000
+++ b/test/test_physfs.c	Mon Mar 14 11:47:42 2005 +0000
@@ -174,7 +174,7 @@
     } /* else */
     appending = atoi(ptr + 1);
 
-    printf("[%s], [%s], [%d]\n", args, mntpoint, appending);
+    /*printf("[%s], [%s], [%d]\n", args, mntpoint, appending);*/
 
     if (PHYSFS_mount(args, mntpoint, appending))
         printf("Successful.\n");
@@ -1044,7 +1044,7 @@
         return(0);
     } /* if */
 
-    cmd_copy = malloc(strlen(complete_cmd) + 1);
+    cmd_copy = (char *) malloc(strlen(complete_cmd) + 1);
     if (cmd_copy == NULL)
     {
         printf("\n\n\nOUT OF MEMORY!\n\n\n");
@@ -1175,7 +1175,7 @@
         buf = readline("> ");
 #else
         int i;
-        buf = malloc(512);
+        buf = (char *) malloc(512);
         memset(buf, '\0', 512);
         printf("> ");
         for (i = 0; i < 511; i++)