From 3b0d2849f9fc0d686bfb66d7155e8fef14c6a87b Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 14 Jul 2005 17:05:49 +0000 Subject: [PATCH] Fixed error message --- src/unlink.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/unlink.c b/src/unlink.c index 92eb9d4..bacdf10 100644 --- a/src/unlink.c +++ b/src/unlink.c @@ -7,11 +7,12 @@ /* 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 0;