Fixed error message

This commit is contained in:
Pierre Pronchery 2005-07-14 17:05:49 +00:00
parent eb41fcfaad
commit 3b0d2849f9

View File

@ -7,11 +7,12 @@
/* unlink */ /* unlink */
static int _unlink(char * arg) static int _unlink(char * file)
{ {
if(unlink(arg) == -1) if(unlink(file) == -1)
{ {
perror(arg); fprintf(stderr, "%s", "unlink: ");
perror(file);
return 2; return 2;
} }
return 0; return 0;