summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/appletlib.c7
-rw-r--r--libbb/procps.c4
-rw-r--r--libbb/recursive_action.c6
3 files changed, 10 insertions, 7 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c
index fec99c5..de27dd8 100644
--- a/libbb/appletlib.c
+++ b/libbb/appletlib.c
@@ -123,7 +123,8 @@ int find_applet_by_name(const char *name)
int *const bb_errno __attribute__ ((section (".data")));
#endif
-void lbb_prepare(const char *applet, char **argv)
+void lbb_prepare(const char *applet
+ USE_FEATURE_INDIVIDUAL(, char **argv))
{
#ifdef __GLIBC__
(*(int **)&bb_errno) = __errno_location();
@@ -662,10 +663,10 @@ void run_applet_and_exit(const char *name, char **argv)
#if ENABLE_BUILD_LIBBUSYBOX
int lbb_main(int argc, char **argv)
#else
-int main(int argc, char **argv)
+int main(int argc ATTRIBUTE_UNUSED, char **argv)
#endif
{
- lbb_prepare("busybox", argv);
+ lbb_prepare("busybox" USE_FEATURE_INDIVIDUAL(, argv));
#if !BB_MMU
/* NOMMU re-exec trick sets high-order bit in first byte of name */
diff --git a/libbb/procps.c b/libbb/procps.c
index 015ad80..f67f7dc 100644
--- a/libbb/procps.c
+++ b/libbb/procps.c
@@ -93,7 +93,7 @@ static int read_to_buf(const char *filename, void *buf)
return ret;
}
-procps_status_t *alloc_procps_scan(int flags)
+static procps_status_t *alloc_procps_scan(void)
{
unsigned n = getpagesize();
procps_status_t* sp = xzalloc(sizeof(procps_status_t));
@@ -175,7 +175,7 @@ procps_status_t *procps_scan(procps_status_t* sp, int flags)
struct stat sb;
if (!sp)
- sp = alloc_procps_scan(flags);
+ sp = alloc_procps_scan();
for (;;) {
entry = readdir(sp->dir);
diff --git a/libbb/recursive_action.c b/libbb/recursive_action.c
index 37363bb..513aff3 100644
--- a/libbb/recursive_action.c
+++ b/libbb/recursive_action.c
@@ -22,8 +22,10 @@
* is so stinking huge.
*/
-static int true_action(const char *fileName, struct stat *statbuf,
- void* userData, int depth)
+static int true_action(const char *fileName ATTRIBUTE_UNUSED,
+ struct stat *statbuf ATTRIBUTE_UNUSED,
+ void* userData ATTRIBUTE_UNUSED,
+ int depth ATTRIBUTE_UNUSED)
{
return TRUE;
}