From c799a14c70b1df1742f471775959d39fcc73d13d Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 14 Mar 2005 11:47:42 +0000 Subject: [PATCH] Commented out a printf() and cleaned up some mallocs. --- test/test_physfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_physfs.c b/test/test_physfs.c index dca73d4b..1bb0139f 100644 --- a/test/test_physfs.c +++ b/test/test_physfs.c @@ -174,7 +174,7 @@ static int cmd_mount(char *args) } /* 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 @@ static int process_command(char *complete_cmd) 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 @@ int main(int argc, char **argv) buf = readline("> "); #else int i; - buf = malloc(512); + buf = (char *) malloc(512); memset(buf, '\0', 512); printf("> "); for (i = 0; i < 511; i++)