summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-04-28 14:30:59 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-04-28 14:30:59 +0000
commit403066f6cd6f4df68f68178acc2db0926370e95c (patch)
treeb3009ecd03608c0ad9e4f46ed6b20a6d43b830d0
parentfedb15c7679ca336a1e66826678679c8a59c1bec (diff)
downloadbluez-403066f6cd6f4df68f68178acc2db0926370e95c.tar.gz
Cleanup main function declarations
-rw-r--r--dund/main.c2
-rw-r--r--hcid/passkey-agent.c2
-rw-r--r--pand/main.c2
-rw-r--r--sdpd/main.c2
-rw-r--r--test/hciemu.c2
-rw-r--r--tools/hciconfig.c8
-rw-r--r--tools/hcitool.c2
-rw-r--r--tools/sdptool.c2
8 files changed, 11 insertions, 11 deletions
diff --git a/dund/main.c b/dund/main.c
index 06055fde8..8c311763b 100644
--- a/dund/main.c
+++ b/dund/main.c
@@ -431,7 +431,7 @@ static char main_help[] =
"\t--activesync -a Enable Microsoft ActiveSync networking\n"
"\t--cache -C[valid] Enable address cache\n";
-int main(int argc, char **argv)
+int main(int argc, char *argv[])
{
char *dst = NULL, *src = NULL;
struct sigaction sa;
diff --git a/hcid/passkey-agent.c b/hcid/passkey-agent.c
index 8a5442eff..e47afe6b2 100644
--- a/hcid/passkey-agent.c
+++ b/hcid/passkey-agent.c
@@ -277,7 +277,7 @@ static struct option main_options[] = {
{ 0, 0, 0, 0 }
};
-int main(int argc, char **argv)
+int main(int argc, char *argv[])
{
struct sigaction sa;
DBusConnection *conn;
diff --git a/pand/main.c b/pand/main.c
index 2f258aa32..50b355b6c 100644
--- a/pand/main.c
+++ b/pand/main.c
@@ -556,7 +556,7 @@ static char main_help[] =
"\t--pidfile -P <pidfile> Create PID file\n"
"\t--devup -u <script> Script to run when interface comes up\n";
-int main(int argc, char **argv)
+int main(int argc, char *argv[])
{
char *dst = NULL, *src = NULL;
struct sigaction sa;
diff --git a/sdpd/main.c b/sdpd/main.c
index d5aac4dac..269d5af85 100644
--- a/sdpd/main.c
+++ b/sdpd/main.c
@@ -407,7 +407,7 @@ static struct option main_options[] = {
{ 0, 0, 0, 0}
};
-int main(int argc, char **argv)
+int main(int argc, char *argv[])
{
uint16_t mtu = 0;
int daemonize = 1, public = 0, master = 0;
diff --git a/test/hciemu.c b/test/hciemu.c
index f6a35044a..d6996a3e2 100644
--- a/test/hciemu.c
+++ b/test/hciemu.c
@@ -1179,7 +1179,7 @@ static struct option main_options[] = {
{ 0 }
};
-int main(int argc, char *argv[], char *env[])
+int main(int argc, char *argv[])
{
struct sigaction sa;
GIOChannel *dev_io;
diff --git a/tools/hciconfig.c b/tools/hciconfig.c
index e6868f0ce..3ebfc1c8b 100644
--- a/tools/hciconfig.c
+++ b/tools/hciconfig.c
@@ -1532,12 +1532,12 @@ static void usage(void)
}
static struct option main_options[] = {
- {"help", 0,0, 'h'},
- {"all", 0,0, 'a'},
- {0, 0, 0, 0}
+ { "help", 0, 0, 'h' },
+ { "all", 0, 0, 'a' },
+ { 0, 0, 0, 0 }
};
-int main(int argc, char **argv, char **env)
+int main(int argc, char *argv[])
{
int opt, ctl, i, cmd=0;
diff --git a/tools/hcitool.c b/tools/hcitool.c
index 2ad26bfee..594c2601e 100644
--- a/tools/hcitool.c
+++ b/tools/hcitool.c
@@ -2081,7 +2081,7 @@ static struct option main_options[] = {
{ 0, 0, 0, 0 }
};
-int main(int argc, char **argv)
+int main(int argc, char *argv[])
{
int opt, i, dev_id = -1;
bdaddr_t ba;
diff --git a/tools/sdptool.c b/tools/sdptool.c
index 8bee7985d..8beff5683 100644
--- a/tools/sdptool.c
+++ b/tools/sdptool.c
@@ -3786,7 +3786,7 @@ static struct option main_options[] = {
{ 0, 0, 0, 0 }
};
-int main(int argc, char **argv)
+int main(int argc, char *argv[])
{
int i, opt;