summaryrefslogtreecommitdiff
path: root/user/ln.c
diff options
context:
space:
mode:
Diffstat (limited to 'user/ln.c')
-rw-r--r--user/ln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/user/ln.c b/user/ln.c
index 1cb96d5..1894143 100644
--- a/user/ln.c
+++ b/user/ln.c
@@ -7,7 +7,7 @@ main(int argc, char *argv[])
{
if(argc != 3){
fprintf(2, "Usage: ln old new\n");
- exit(-1);
+ exit(1);
}
if(link(argv[1], argv[2]) < 0)
fprintf(2, "link %s %s: failed\n", argv[1], argv[2]);