projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d31f0f
)
libbb: make const_int_0 reside in rodata
author
Denis Vlasenko
<vda.linux@googlemail.com>
Thu, 27 Sep 2007 20:49:57 +0000
(20:49 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Thu, 27 Sep 2007 20:49:57 +0000
(20:49 -0000)
libbb/messages.c
patch
|
blob
|
history
diff --git
a/libbb/messages.c
b/libbb/messages.c
index a64aa405e869479828ed508d62786ffec9922146..06e9a588a61970a07182605f4732e535ab6670bf 100644
(file)
--- a/
libbb/messages.c
+++ b/
libbb/messages.c
@@
-51,8
+51,10
@@
const char bb_PATH_root_path[] ALIGN1 =
"PATH=/sbin:/usr/sbin:/bin:/usr/bin" BB_ADDITIONAL_PATH;
-const int const_int_0;
const int const_int_1 = 1;
+/* explicitly = 0, otherwise gcc may make it a common variable
+ * and it will end up in bss */
+const int const_int_0 = 0;
#include <utmp.h>
/* This is usually something like "/var/adm/wtmp" or "/var/log/wtmp" */