[git commit] style fix

Denys Vlasenko vda.linux at googlemail.com
Sun May 1 15:06:00 UTC 2022


commit: https://git.busybox.net/busybox/commit/?id=9b6f44e0403f9214343bdafd054a628aa1506630
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 examples/shutdown-1.0/script/hardshutdown.c | 2 +-
 libbb/appletlib.c                           | 2 +-
 networking/httpd_indexcgi.c                 | 2 +-
 networking/httpd_ssi.c                      | 2 +-
 printutils/lpd.c                            | 4 ++--
 printutils/lpr.c                            | 4 ++--
 shell/match.c                               | 2 +-
 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 {
 	REBOOT
 };
 
-int main(int argc, char *argv[])
+int main(int argc, char **argv)
 {
 	struct timespec t = {0,0};
 	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)
 //usage:#define busybox_trivial_usage NOUSAGE_STR
 //usage:#define busybox_full_usage ""
 //applet:IF_BUSYBOX(IF_FEATURE_SH_STANDALONE(IF_FEATURE_TAB_COMPLETION(APPLET(busybox, BB_DIR_BIN, BB_SUID_MAYBE))))
-int busybox_main(int argc, char *argv[]) MAIN_EXTERNALLY_VISIBLE;
+int busybox_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
 #  else
 #   define busybox_main(argc,argv) busybox_main(argv)
 static
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)
 	fmt_02u(n % 100);
 }
 
-int main(int argc, char *argv[])
+int main(int argc, char **argv)
 {
 	dir_list_t *dir_list;
 	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)
 	fclose(fp);
 }
 
-int main(int argc, char *argv[])
+int main(int argc, char **argv)
 {
 	if (!argv[1])
 		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)
 	return xmalloc_reads(STDIN_FILENO, &max);
 }
 
-int lpd_main(int argc, char *argv[]) MAIN_EXTERNALLY_VISIBLE;
-int lpd_main(int argc UNUSED_PARAM, char *argv[])
+int lpd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
+int lpd_main(int argc UNUSED_PARAM, char **argv)
 {
 	int spooling = spooling; // for compiler
 	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)
 	}
 }
 
-int lpqr_main(int argc, char *argv[]) MAIN_EXTERNALLY_VISIBLE;
-int lpqr_main(int argc UNUSED_PARAM, char *argv[])
+int lpqr_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
+int lpqr_main(int argc UNUSED_PARAM, char **argv)
 {
 	enum {
 		OPT_P           = 1 << 0, // -P queue[@host[:port]]. If no -P is given use $PRINTER, then "lp at 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
 }
 
 #ifdef STANDALONE
-int main(int argc, char *argv[])
+int main(int argc, char **argv)
 {
 	char *string;
 	char *op;


More information about the busybox-cvs mailing list