[git commit master 1/1] save 10 bytes on strings

Denys Vlasenko vda.linux at googlemail.com
Thu Feb 10 09:01:49 UTC 2011


commit: http://git.busybox.net/busybox/commit/?id=dee0fc9da1b53efc4c5e0596428dda556995bc26
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 libbb/messages.c  |    2 +-
 networking/wget.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libbb/messages.c b/libbb/messages.c
index 2acbc3b..fad82c9 100644
--- a/libbb/messages.c
+++ b/libbb/messages.c
@@ -22,7 +22,7 @@
 const char bb_banner[] ALIGN1 = BANNER;
 
 
-const char bb_msg_memory_exhausted[] ALIGN1 = "memory exhausted";
+const char bb_msg_memory_exhausted[] ALIGN1 = "out of memory";
 const char bb_msg_invalid_date[] ALIGN1 = "invalid date '%s'";
 const char bb_msg_unknown[] ALIGN1 = "(unknown)";
 const char bb_msg_can_not_create_raw_socket[] ALIGN1 = "can't create raw socket";
diff --git a/networking/wget.c b/networking/wget.c
index 8028f12..74d9004 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -192,7 +192,7 @@ static FILE *open_socket(len_and_sockaddr *lsa)
 	/* hopefully it understands what ESPIPE means... */
 	fp = fdopen(xconnect_stream(lsa), "r+");
 	if (fp == NULL)
-		bb_perror_msg_and_die("fdopen");
+		bb_perror_msg_and_die(bb_msg_memory_exhausted);
 
 	return fp;
 }
-- 
1.7.3.4



More information about the busybox-cvs mailing list