summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2011-05-18 08:42:46 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2011-05-18 09:05:55 -0700
commit8af5f43a6988e8f9eb2df0d43decfde23a168980 (patch)
tree5c18f3215e028219c062ed0eb84a96f5b90a8f0e
parent9480e8c70648b8224a12c0866d99e39299a346f4 (diff)
Fix empty parameter list in functions declarations
-rw-r--r--lib/sdp.c2
-rw-r--r--src/log.c2
-rw-r--r--src/log.h2
-rw-r--r--src/sdpd-database.c2
-rw-r--r--test/avtest.c2
-rw-r--r--tools/avinfo.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/lib/sdp.c b/lib/sdp.c
index 2425b1e7..a48ee14f 100644
--- a/lib/sdp.c
+++ b/lib/sdp.c
@@ -3111,7 +3111,7 @@ int sdp_record_update(sdp_session_t *session, const sdp_record_t *rec)
return sdp_device_record_update(session, BDADDR_ANY, rec);
}
-sdp_record_t *sdp_record_alloc()
+sdp_record_t *sdp_record_alloc(void)
{
sdp_record_t *rec = malloc(sizeof(sdp_record_t));
diff --git a/src/log.c b/src/log.c
index 494ff5da..6fbbba98 100644
--- a/src/log.c
+++ b/src/log.c
@@ -86,7 +86,7 @@ static gboolean is_enabled(struct btd_debug_desc *desc)
return 0;
}
-void __btd_toggle_debug()
+void __btd_toggle_debug(void)
{
struct btd_debug_desc *desc;
diff --git a/src/log.h b/src/log.h
index 14e9bfd6..78bbdd80 100644
--- a/src/log.h
+++ b/src/log.h
@@ -28,7 +28,7 @@ void btd_debug(const char *format, ...) __attribute__((format(printf, 1, 2)));
void __btd_log_init(const char *debug, int detach);
void __btd_log_cleanup(void);
-void __btd_toggle_debug();
+void __btd_toggle_debug(void);
struct btd_debug_desc {
const char *file;
diff --git a/src/sdpd-database.c b/src/sdpd-database.c
index 08f542ff..dd492bf3 100644
--- a/src/sdpd-database.c
+++ b/src/sdpd-database.c
@@ -90,7 +90,7 @@ static void access_free(void *p)
/*
* Reset the service repository by deleting its contents
*/
-void sdp_svcdb_reset()
+void sdp_svcdb_reset(void)
{
sdp_list_free(service_db, (sdp_free_func_t) sdp_record_free);
sdp_list_free(access_db, access_free);
diff --git a/test/avtest.c b/test/avtest.c
index 168326fc..541b3cdd 100644
--- a/test/avtest.c
+++ b/test/avtest.c
@@ -714,7 +714,7 @@ static void do_avctp_send(int sk, int invalid)
dump_avctp_header(hdr);
}
-static void usage()
+static void usage(void)
{
printf("avtest - Audio/Video testing ver %s\n", VERSION);
printf("Usage:\n"
diff --git a/tools/avinfo.c b/tools/avinfo.c
index 7f76c037..63b0da67 100644
--- a/tools/avinfo.c
+++ b/tools/avinfo.c
@@ -604,7 +604,7 @@ static int l2cap_connect(bdaddr_t *src, bdaddr_t *dst)
return sk;
}
-static void usage()
+static void usage(void)
{
printf("avinfo - Audio/Video Info Tool ver %s\n", VERSION);
printf("Usage:\n"