aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2022-05-01 17:06:00 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2022-05-01 17:06:00 +0200
commit9b6f44e0403f9214343bdafd054a628aa1506630 (patch)
tree64f7e35e2e92f8927c1f9882738b5e015dcf1f65
parenta157c4c978d3e984f3cb7e2fc02d5ce428d5f82e (diff)
downloadbusybox-w32-9b6f44e0403f9214343bdafd054a628aa1506630.tar.gz
busybox-w32-9b6f44e0403f9214343bdafd054a628aa1506630.tar.bz2
busybox-w32-9b6f44e0403f9214343bdafd054a628aa1506630.zip
style fix
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--examples/shutdown-1.0/script/hardshutdown.c2
-rw-r--r--libbb/appletlib.c2
-rw-r--r--networking/httpd_indexcgi.c2
-rw-r--r--networking/httpd_ssi.c2
-rw-r--r--printutils/lpd.c4
-rw-r--r--printutils/lpr.c4
-rw-r--r--shell/match.c2
7 files changed, 9 insertions, 9 deletions
diff --git a/examples/shutdown-1.0/script/hardshutdown.c b/examples/shutdown-1.0/script/hardshutdown.c
index c21ddad58..b4af26f0f 100644
--- a/examples/shutdown-1.0/script/hardshutdown.c
+++ b/examples/shutdown-1.0/script/hardshutdown.c
@@ -102,7 +102,7 @@ enum action_t {
102 REBOOT 102 REBOOT
103}; 103};
104 104
105int main(int argc, char *argv[]) 105int main(int argc, char **argv)
106{ 106{
107 struct timespec t = {0,0}; 107 struct timespec t = {0,0};
108 enum action_t action = SHUTDOWN; 108 enum action_t action = SHUTDOWN;
diff --git a/libbb/appletlib.c b/libbb/appletlib.c
index 841b3b873..d8ab2a450 100644
--- a/libbb/appletlib.c
+++ b/libbb/appletlib.c
@@ -762,7 +762,7 @@ get_script_content(unsigned n)
762//usage:#define busybox_trivial_usage NOUSAGE_STR 762//usage:#define busybox_trivial_usage NOUSAGE_STR
763//usage:#define busybox_full_usage "" 763//usage:#define busybox_full_usage ""
764//applet:IF_BUSYBOX(IF_FEATURE_SH_STANDALONE(IF_FEATURE_TAB_COMPLETION(APPLET(busybox, BB_DIR_BIN, BB_SUID_MAYBE)))) 764//applet:IF_BUSYBOX(IF_FEATURE_SH_STANDALONE(IF_FEATURE_TAB_COMPLETION(APPLET(busybox, BB_DIR_BIN, BB_SUID_MAYBE))))
765int busybox_main(int argc, char *argv[]) MAIN_EXTERNALLY_VISIBLE; 765int busybox_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
766# else 766# else
767# define busybox_main(argc,argv) busybox_main(argv) 767# define busybox_main(argc,argv) busybox_main(argv)
768static 768static
diff --git a/networking/httpd_indexcgi.c b/networking/httpd_indexcgi.c
index 47b1159f4..edaaad566 100644
--- a/networking/httpd_indexcgi.c
+++ b/networking/httpd_indexcgi.c
@@ -211,7 +211,7 @@ static void fmt_04u(/*char *dst,*/ unsigned n)
211 fmt_02u(n % 100); 211 fmt_02u(n % 100);
212} 212}
213 213
214int main(int argc, char *argv[]) 214int main(int argc, char **argv)
215{ 215{
216 dir_list_t *dir_list; 216 dir_list_t *dir_list;
217 dir_list_t *cdir; 217 dir_list_t *cdir;
diff --git a/networking/httpd_ssi.c b/networking/httpd_ssi.c
index 4bd9a6d97..620b96332 100644
--- a/networking/httpd_ssi.c
+++ b/networking/httpd_ssi.c
@@ -143,7 +143,7 @@ static void process_includes(const char *filename)
143 fclose(fp); 143 fclose(fp);
144} 144}
145 145
146int main(int argc, char *argv[]) 146int main(int argc, char **argv)
147{ 147{
148 if (!argv[1]) 148 if (!argv[1])
149 return 1; 149 return 1;
diff --git a/printutils/lpd.c b/printutils/lpd.c
index e48feef90..34e5ea209 100644
--- a/printutils/lpd.c
+++ b/printutils/lpd.c
@@ -114,8 +114,8 @@ static char *xmalloc_read_stdin(void)
114 return xmalloc_reads(STDIN_FILENO, &max); 114 return xmalloc_reads(STDIN_FILENO, &max);
115} 115}
116 116
117int lpd_main(int argc, char *argv[]) MAIN_EXTERNALLY_VISIBLE; 117int lpd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
118int lpd_main(int argc UNUSED_PARAM, char *argv[]) 118int lpd_main(int argc UNUSED_PARAM, char **argv)
119{ 119{
120 int spooling = spooling; // for compiler 120 int spooling = spooling; // for compiler
121 char *s, *queue; 121 char *s, *queue;
diff --git a/printutils/lpr.c b/printutils/lpr.c
index 77d1a79a4..d40d0a67c 100644
--- a/printutils/lpr.c
+++ b/printutils/lpr.c
@@ -78,8 +78,8 @@ static void get_response_or_say_and_die(int fd, const char *errmsg)
78 } 78 }
79} 79}
80 80
81int lpqr_main(int argc, char *argv[]) MAIN_EXTERNALLY_VISIBLE; 81int lpqr_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
82int lpqr_main(int argc UNUSED_PARAM, char *argv[]) 82int lpqr_main(int argc UNUSED_PARAM, char **argv)
83{ 83{
84 enum { 84 enum {
85 OPT_P = 1 << 0, // -P queue[@host[:port]]. If no -P is given use $PRINTER, then "lp@localhost:515" 85 OPT_P = 1 << 0, // -P queue[@host[:port]]. If no -P is given use $PRINTER, then "lp@localhost:515"
diff --git a/shell/match.c b/shell/match.c
index 90f77546d..8024f2747 100644
--- a/shell/match.c
+++ b/shell/match.c
@@ -95,7 +95,7 @@ char* FAST_FUNC scan_and_match(char *string, const char *pattern, unsigned flags
95} 95}
96 96
97#ifdef STANDALONE 97#ifdef STANDALONE
98int main(int argc, char *argv[]) 98int main(int argc, char **argv)
99{ 99{
100 char *string; 100 char *string;
101 char *op; 101 char *op;