Skip to content

Commit

Permalink
Commented out a printf() and cleaned up some mallocs.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 14, 2005
1 parent 2211ea7 commit c799a14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_physfs.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ static int cmd_mount(char *args)
} /* else */ } /* else */
appending = atoi(ptr + 1); 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)) if (PHYSFS_mount(args, mntpoint, appending))
printf("Successful.\n"); printf("Successful.\n");
Expand Down Expand Up @@ -1044,7 +1044,7 @@ static int process_command(char *complete_cmd)
return(0); return(0);
} /* if */ } /* if */


cmd_copy = malloc(strlen(complete_cmd) + 1); cmd_copy = (char *) malloc(strlen(complete_cmd) + 1);
if (cmd_copy == NULL) if (cmd_copy == NULL)
{ {
printf("\n\n\nOUT OF MEMORY!\n\n\n"); printf("\n\n\nOUT OF MEMORY!\n\n\n");
Expand Down Expand Up @@ -1175,7 +1175,7 @@ int main(int argc, char **argv)
buf = readline("> "); buf = readline("> ");
#else #else
int i; int i;
buf = malloc(512); buf = (char *) malloc(512);
memset(buf, '\0', 512); memset(buf, '\0', 512);
printf("> "); printf("> ");
for (i = 0; i < 511; i++) for (i = 0; i < 511; i++)
Expand Down

0 comments on commit c799a14

Please sign in to comment.