summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenys Vlasenko2016-04-21 21:03:51 +0200
committerDenys Vlasenko2016-04-21 21:03:51 +0200
commitf56fb5eb1120a92bdfb6d0ce64b3430b42a2efa0 (patch)
tree6e013fd342ece68ad902b849155625a160582967 /libbb
parentdf70a43af281f7e653b1c95ff17201669fdcfca3 (diff)
downloadbusybox-f56fb5eb1120a92bdfb6d0ce64b3430b42a2efa0.zip
busybox-f56fb5eb1120a92bdfb6d0ce64b3430b42a2efa0.tar.gz
libbb: make "COMMON_BUFSIZE = 1024 bytes, the buffer will be malloced" work
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r--libbb/common_bufsiz.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/common_bufsiz.c b/libbb/common_bufsiz.c
index c16c361..26faafc 100644
--- a/libbb/common_bufsiz.c
+++ b/libbb/common_bufsiz.c
@@ -55,14 +55,14 @@ char bb_common_bufsiz1[COMMON_BUFSIZE] ALIGNED(sizeof(long long));
# ifndef setup_common_bufsiz
/*
- * It is not a "((void)0)" macro. It means we have to provide this function.
+ * It is not defined as a dummy macro.
+ * It means we have to provide this function.
*/
char* bb_common_bufsiz1;
-char* setup_common_bufsiz(void)
+void setup_common_bufsiz(void)
{
if (!bb_common_bufsiz1)
bb_common_bufsiz1 = xzalloc(COMMON_BUFSIZE);
- return bb_common_bufsiz1;
}
# else
# ifndef bb_common_bufsiz1