diff options
author | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-07-14 01:51:25 +0000 |
---|---|---|
committer | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-07-14 01:51:25 +0000 |
commit | ed2dfb60ee4a99850e9e68fb27512a0bab4ba992 (patch) | |
tree | 62127f20fc07758e445d8c4e186306cbe83d77b1 /ln.c | |
parent | f35f4340a4f7ae02b1139ac9f303e5b8081d71e9 (diff) | |
download | busybox-w32-ed2dfb60ee4a99850e9e68fb27512a0bab4ba992.tar.gz busybox-w32-ed2dfb60ee4a99850e9e68fb27512a0bab4ba992.tar.bz2 busybox-w32-ed2dfb60ee4a99850e9e68fb27512a0bab4ba992.zip |
Use errorMsg rather than fprintf.
git-svn-id: svn://busybox.net/trunk/busybox@848 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'ln.c')
-rw-r--r-- | ln.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -23,7 +23,6 @@ | |||
23 | 23 | ||
24 | #include "internal.h" | 24 | #include "internal.h" |
25 | #define BB_DECLARE_EXTERN | 25 | #define BB_DECLARE_EXTERN |
26 | #define bb_need_name_too_long | ||
27 | #define bb_need_not_a_directory | 26 | #define bb_need_not_a_directory |
28 | #include "messages.c" | 27 | #include "messages.c" |
29 | 28 | ||
@@ -92,7 +91,7 @@ extern int ln_main(int argc, char **argv) | |||
92 | 91 | ||
93 | linkIntoDirFlag = isDirectory(linkName, followLinks, NULL); | 92 | linkIntoDirFlag = isDirectory(linkName, followLinks, NULL); |
94 | if ((argc >= 3) && linkIntoDirFlag == FALSE) { | 93 | if ((argc >= 3) && linkIntoDirFlag == FALSE) { |
95 | fprintf(stderr, not_a_directory, "ln", linkName); | 94 | errorMsg(not_a_directory, linkName); |
96 | exit FALSE; | 95 | exit FALSE; |
97 | } | 96 | } |
98 | 97 | ||