aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-11-18 22:04:09 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-11-18 22:04:09 +0000
commit89f0b3486dfea233e6000f9af95b39a3ea7fd96e (patch)
treefc0d65e0d33b5b526b0d44d4c4da8143be3b53b1 /libbb
parent61126ab30a90b74e45a79ccb97074ab71afa6054 (diff)
downloadbusybox-89f0b3486dfea233e6000f9af95b39a3ea7fd96e.tar.gz
rodata cleanup. "unable to" == "cannot". -300 bytes
Diffstat (limited to 'libbb')
-rw-r--r--libbb/remove_file.c16
-rw-r--r--libbb/run_parts.c2
-rw-r--r--libbb/xconnect.c4
-rw-r--r--libbb/xfuncs.c4
4 files changed, 13 insertions, 13 deletions
diff --git a/libbb/remove_file.c b/libbb/remove_file.c
index 509aa6a6d..ab159a481 100644
--- a/libbb/remove_file.c
+++ b/libbb/remove_file.c
@@ -25,7 +25,7 @@ int remove_file(const char *path, int flags)
if (lstat(path, &path_stat) < 0) {
if (errno != ENOENT) {
- bb_perror_msg("unable to stat `%s'", path);
+ bb_perror_msg("cannot stat '%s'", path);
return -1;
}
@@ -34,7 +34,7 @@ int remove_file(const char *path, int flags)
if (!path_exists) {
if (!(flags & FILEUTILS_FORCE)) {
- bb_perror_msg("cannot remove `%s'", path);
+ bb_perror_msg("cannot remove '%s'", path);
return -1;
}
return 0;
@@ -53,7 +53,7 @@ int remove_file(const char *path, int flags)
if ((!(flags & FILEUTILS_FORCE) && access(path, W_OK) < 0 &&
isatty(0)) ||
(flags & FILEUTILS_INTERACTIVE)) {
- fprintf(stderr, "%s: descend into directory `%s'? ", applet_name,
+ fprintf(stderr, "%s: descend into directory '%s'? ", applet_name,
path);
if (!bb_ask_confirmation())
return 0;
@@ -75,18 +75,18 @@ int remove_file(const char *path, int flags)
}
if (closedir(dp) < 0) {
- bb_perror_msg("unable to close `%s'", path);
+ bb_perror_msg("cannot close '%s'", path);
return -1;
}
if (flags & FILEUTILS_INTERACTIVE) {
- fprintf(stderr, "%s: remove directory `%s'? ", applet_name, path);
+ fprintf(stderr, "%s: remove directory '%s'? ", applet_name, path);
if (!bb_ask_confirmation())
return status;
}
if (rmdir(path) < 0) {
- bb_perror_msg("unable to remove `%s'", path);
+ bb_perror_msg("cannot remove '%s'", path);
return -1;
}
@@ -96,13 +96,13 @@ int remove_file(const char *path, int flags)
!S_ISLNK(path_stat.st_mode) &&
isatty(0)) ||
(flags & FILEUTILS_INTERACTIVE)) {
- fprintf(stderr, "%s: remove `%s'? ", applet_name, path);
+ fprintf(stderr, "%s: remove '%s'? ", applet_name, path);
if (!bb_ask_confirmation())
return 0;
}
if (unlink(path) < 0) {
- bb_perror_msg("unable to remove `%s'", path);
+ bb_perror_msg("cannot remove '%s'", path);
return -1;
}
diff --git a/libbb/run_parts.c b/libbb/run_parts.c
index c1a45e3d9..fae91813c 100644
--- a/libbb/run_parts.c
+++ b/libbb/run_parts.c
@@ -64,7 +64,7 @@ int run_parts(char **args, const unsigned char test_mode, char **env)
if (test_mode & 2) {
return(2);
}
- bb_perror_msg_and_die("unable to open `%s'", arg0);
+ bb_perror_msg_and_die("cannot open '%s'", arg0);
}
for (i = 0; i < entries; i++) {
diff --git a/libbb/xconnect.c b/libbb/xconnect.c
index 7cf9d00e9..21ec2761a 100644
--- a/libbb/xconnect.c
+++ b/libbb/xconnect.c
@@ -54,9 +54,9 @@ void xconnect(int s, const struct sockaddr *s_addr, socklen_t addrlen)
if (connect(s, s_addr, addrlen) < 0) {
if (ENABLE_FEATURE_CLEAN_UP) close(s);
if (s_addr->sa_family == AF_INET)
- bb_perror_msg_and_die("unable to connect to remote host (%s)",
+ bb_perror_msg_and_die("cannot connect to remote host (%s)",
inet_ntoa(((struct sockaddr_in *)s_addr)->sin_addr));
- bb_perror_msg_and_die("unable to connect to remote host");
+ bb_perror_msg_and_die("cannot connect to remote host");
}
}
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index 352515af4..44a551639 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -412,7 +412,7 @@ DIR *warn_opendir(const char *path)
DIR *dp;
if ((dp = opendir(path)) == NULL) {
- bb_perror_msg("unable to open `%s'", path);
+ bb_perror_msg("cannot open '%s'", path);
return NULL;
}
return dp;
@@ -424,7 +424,7 @@ DIR *xopendir(const char *path)
DIR *dp;
if ((dp = opendir(path)) == NULL)
- bb_perror_msg_and_die("unable to open `%s'", path);
+ bb_perror_msg_and_die("cannot open '%s'", path);
return dp;
}