diff options
author | Matt Kraai | 2001-04-24 01:12:33 +0000 |
---|---|---|
committer | Matt Kraai | 2001-04-24 01:12:33 +0000 |
commit | 9ff9325e60eac6cc119eab5dff0dbbba78edfd32 (patch) | |
tree | b298111f4ce0cbb7998dabb279d61247eb4eac19 /libbb | |
parent | af030496fae5c4ad24770be8a850b244286ba608 (diff) | |
download | busybox-9ff9325e60eac6cc119eab5dff0dbbba78edfd32.zip busybox-9ff9325e60eac6cc119eab5dff0dbbba78edfd32.tar.gz |
Move applet_name declaration from busybox.h to libbb.h.
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/copy_file.c | 2 | ||||
-rw-r--r-- | libbb/libbb.h | 2 | ||||
-rw-r--r-- | libbb/syslog_msg_with_name.c | 2 | ||||
-rw-r--r-- | libbb/verror_msg.c | 2 |
4 files changed, 3 insertions, 5 deletions
diff --git a/libbb/copy_file.c b/libbb/copy_file.c index 113c253..f24d1b1 100644 --- a/libbb/copy_file.c +++ b/libbb/copy_file.c @@ -126,7 +126,7 @@ int copy_file(const char *source, const char *dest, int flags) if (dest_exists) { if (flags & CP_INTERACTIVE) { - fprintf(stderr, "cp: overwrite `%s'? ", dest); + fprintf(stderr, "%s: overwrite `%s'? ", applet_name, dest); if (!ask_confirmation()) return 0; } diff --git a/libbb/libbb.h b/libbb/libbb.h index c47a668..4eeb993 100644 --- a/libbb/libbb.h +++ b/libbb/libbb.h @@ -262,4 +262,6 @@ enum { CP_INTERACTIVE = 16 }; +extern const char *applet_name; + #endif /* __LIBBB_H__ */ diff --git a/libbb/syslog_msg_with_name.c b/libbb/syslog_msg_with_name.c index d72755a..5dadcc4 100644 --- a/libbb/syslog_msg_with_name.c +++ b/libbb/syslog_msg_with_name.c @@ -29,8 +29,6 @@ #include <sys/syslog.h> #include "libbb.h" -extern const char *applet_name; - void syslog_msg_with_name(const char *name, int facility, int pri, const char *msg) { openlog(name, 0, facility); diff --git a/libbb/verror_msg.c b/libbb/verror_msg.c index b5278cf..b348215 100644 --- a/libbb/verror_msg.c +++ b/libbb/verror_msg.c @@ -31,8 +31,6 @@ #include <stdlib.h> #include "libbb.h" -extern const char *applet_name; - extern void verror_msg(const char *s, va_list p) { fflush(stdout); |