summaryrefslogtreecommitdiff
path: root/cleopatre/busybox-1.11.1-spc300/libbb/perror_nomsg.c
diff options
context:
space:
mode:
authorYacine Belkadi2012-05-03 11:01:33 +0200
committerYacine Belkadi2012-06-27 11:07:22 +0200
commitb31db02df546187d7b2f27e14eb587b4561dda8d (patch)
treeb5b259dba96a419de4d2d55e51acf270374717fd /cleopatre/busybox-1.11.1-spc300/libbb/perror_nomsg.c
parent4d7cb28e1ab17aad9145278c05d48eed0623a1da (diff)
cleo: add directory for busybox sources, refs #3085
Create a source directory for busybox, by extracting the content of busybox-1.11.1.tar.bz2.
Diffstat (limited to 'cleopatre/busybox-1.11.1-spc300/libbb/perror_nomsg.c')
-rw-r--r--cleopatre/busybox-1.11.1-spc300/libbb/perror_nomsg.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/cleopatre/busybox-1.11.1-spc300/libbb/perror_nomsg.c b/cleopatre/busybox-1.11.1-spc300/libbb/perror_nomsg.c
new file mode 100644
index 0000000000..62ce888ae7
--- /dev/null
+++ b/cleopatre/busybox-1.11.1-spc300/libbb/perror_nomsg.c
@@ -0,0 +1,21 @@
+/* vi: set sw=4 ts=4: */
+/*
+ * bb_perror_nomsg implementation for busybox
+ *
+ * Copyright (C) 2003 Manuel Novoa III <mjn3@codepoet.org>
+ *
+ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
+ */
+
+/* gcc warns about a null format string, therefore we provide
+ * modified definition without "attribute (format)"
+ * instead of including libbb.h */
+//#include "libbb.h"
+extern void bb_perror_msg(const char *s, ...);
+
+/* suppress gcc "no previous prototype" warning */
+void bb_perror_nomsg(void);
+void bb_perror_nomsg(void)
+{
+ bb_perror_msg(0);
+}