aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-04-24 01:12:33 +0000
committerMatt Kraai <kraai@debian.org>2001-04-24 01:12:33 +0000
commit9ff9325e60eac6cc119eab5dff0dbbba78edfd32 (patch)
treeb298111f4ce0cbb7998dabb279d61247eb4eac19
parentaf030496fae5c4ad24770be8a850b244286ba608 (diff)
downloadbusybox-w32-9ff9325e60eac6cc119eab5dff0dbbba78edfd32.tar.gz
busybox-w32-9ff9325e60eac6cc119eab5dff0dbbba78edfd32.tar.bz2
busybox-w32-9ff9325e60eac6cc119eab5dff0dbbba78edfd32.zip
Move applet_name declaration from busybox.h to libbb.h.
-rw-r--r--busybox.h2
-rw-r--r--include/busybox.h2
-rw-r--r--include/libbb.h2
-rw-r--r--libbb/copy_file.c2
-rw-r--r--libbb/libbb.h2
-rw-r--r--libbb/syslog_msg_with_name.c2
-rw-r--r--libbb/verror_msg.c2
7 files changed, 5 insertions, 9 deletions
diff --git a/busybox.h b/busybox.h
index 8905b0dbd..e8055b06c 100644
--- a/busybox.h
+++ b/busybox.h
@@ -66,8 +66,6 @@ extern const struct BB_applet applets[];
66#include "applets.h" 66#include "applets.h"
67#undef PROTOTYPES 67#undef PROTOTYPES
68 68
69extern const char *applet_name;
70
71#ifdef BB_FEATURE_BUFFERS_GO_ON_STACK 69#ifdef BB_FEATURE_BUFFERS_GO_ON_STACK
72#define RESERVE_BB_BUFFER(buffer,len) char buffer[len] 70#define RESERVE_BB_BUFFER(buffer,len) char buffer[len]
73#define RESERVE_BB_UBUFFER(buffer,len) unsigned char buffer[len] 71#define RESERVE_BB_UBUFFER(buffer,len) unsigned char buffer[len]
diff --git a/include/busybox.h b/include/busybox.h
index 8905b0dbd..e8055b06c 100644
--- a/include/busybox.h
+++ b/include/busybox.h
@@ -66,8 +66,6 @@ extern const struct BB_applet applets[];
66#include "applets.h" 66#include "applets.h"
67#undef PROTOTYPES 67#undef PROTOTYPES
68 68
69extern const char *applet_name;
70
71#ifdef BB_FEATURE_BUFFERS_GO_ON_STACK 69#ifdef BB_FEATURE_BUFFERS_GO_ON_STACK
72#define RESERVE_BB_BUFFER(buffer,len) char buffer[len] 70#define RESERVE_BB_BUFFER(buffer,len) char buffer[len]
73#define RESERVE_BB_UBUFFER(buffer,len) unsigned char buffer[len] 71#define RESERVE_BB_UBUFFER(buffer,len) unsigned char buffer[len]
diff --git a/include/libbb.h b/include/libbb.h
index c47a6689e..4eeb99343 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -262,4 +262,6 @@ enum {
262 CP_INTERACTIVE = 16 262 CP_INTERACTIVE = 16
263}; 263};
264 264
265extern const char *applet_name;
266
265#endif /* __LIBBB_H__ */ 267#endif /* __LIBBB_H__ */
diff --git a/libbb/copy_file.c b/libbb/copy_file.c
index 113c253b9..f24d1b119 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)
126 126
127 if (dest_exists) { 127 if (dest_exists) {
128 if (flags & CP_INTERACTIVE) { 128 if (flags & CP_INTERACTIVE) {
129 fprintf(stderr, "cp: overwrite `%s'? ", dest); 129 fprintf(stderr, "%s: overwrite `%s'? ", applet_name, dest);
130 if (!ask_confirmation()) 130 if (!ask_confirmation())
131 return 0; 131 return 0;
132 } 132 }
diff --git a/libbb/libbb.h b/libbb/libbb.h
index c47a6689e..4eeb99343 100644
--- a/libbb/libbb.h
+++ b/libbb/libbb.h
@@ -262,4 +262,6 @@ enum {
262 CP_INTERACTIVE = 16 262 CP_INTERACTIVE = 16
263}; 263};
264 264
265extern const char *applet_name;
266
265#endif /* __LIBBB_H__ */ 267#endif /* __LIBBB_H__ */
diff --git a/libbb/syslog_msg_with_name.c b/libbb/syslog_msg_with_name.c
index d72755a37..5dadcc433 100644
--- a/libbb/syslog_msg_with_name.c
+++ b/libbb/syslog_msg_with_name.c
@@ -29,8 +29,6 @@
29#include <sys/syslog.h> 29#include <sys/syslog.h>
30#include "libbb.h" 30#include "libbb.h"
31 31
32extern const char *applet_name;
33
34void syslog_msg_with_name(const char *name, int facility, int pri, const char *msg) 32void syslog_msg_with_name(const char *name, int facility, int pri, const char *msg)
35{ 33{
36 openlog(name, 0, facility); 34 openlog(name, 0, facility);
diff --git a/libbb/verror_msg.c b/libbb/verror_msg.c
index b5278cfb7..b34821561 100644
--- a/libbb/verror_msg.c
+++ b/libbb/verror_msg.c
@@ -31,8 +31,6 @@
31#include <stdlib.h> 31#include <stdlib.h>
32#include "libbb.h" 32#include "libbb.h"
33 33
34extern const char *applet_name;
35
36extern void verror_msg(const char *s, va_list p) 34extern void verror_msg(const char *s, va_list p)
37{ 35{
38 fflush(stdout); 36 fflush(stdout);