From a3ecaea889e67f87307cc3be53e51fb472a67c3b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Tue, 12 Jan 2021 15:36:00 -0500 Subject: [PATCH] Clean-up: replace erroneous of empty parameter list by void MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau Change-Id: I951feeed92b346e79e34bec45a14f8b226283ae4 --- src/bin/lttng/commands/version.c | 2 +- src/common/config/session-config.c | 2 +- src/common/event-rule/kprobe.c | 2 +- src/common/event-rule/syscall.c | 2 +- src/common/event-rule/uprobe.c | 2 +- tests/regression/tools/notification/notification.c | 2 +- tests/regression/ust/baddr-statedump/prog.c | 2 +- tests/regression/ust/fork/fork2.c | 2 +- tests/unit/test_uri.c | 2 +- tests/unit/test_utils_compat_pthread.c | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/bin/lttng/commands/version.c b/src/bin/lttng/commands/version.c index b720d2a0d..9f606bf44 100644 --- a/src/bin/lttng/commands/version.c +++ b/src/bin/lttng/commands/version.c @@ -56,7 +56,7 @@ static void create_version(struct mi_lttng_version *version) /* * Print the machine interface output of this command. */ -static int print_mi() +static int print_mi(void) { int ret = CMD_SUCCESS; struct mi_writer *writer = NULL; diff --git a/src/common/config/session-config.c b/src/common/config/session-config.c index 37c5ce383..49c06a353 100644 --- a/src/common/config/session-config.c +++ b/src/common/config/session-config.c @@ -712,7 +712,7 @@ void fini_session_config_validation_ctx( } static -char *get_session_config_xsd_path() +char *get_session_config_xsd_path(void) { char *xsd_path; const char *base_path = lttng_secure_getenv(DEFAULT_SESSION_CONFIG_XSD_PATH_ENV); diff --git a/src/common/event-rule/kprobe.c b/src/common/event-rule/kprobe.c index 15dabdde3..6ec5cd402 100644 --- a/src/common/event-rule/kprobe.c +++ b/src/common/event-rule/kprobe.c @@ -193,7 +193,7 @@ lttng_event_rule_kprobe_hash( return hash; } -struct lttng_event_rule *lttng_event_rule_kprobe_create() +struct lttng_event_rule *lttng_event_rule_kprobe_create(void) { struct lttng_event_rule *rule = NULL; struct lttng_event_rule_kprobe *krule; diff --git a/src/common/event-rule/syscall.c b/src/common/event-rule/syscall.c index 51f22fcc0..fde01019e 100644 --- a/src/common/event-rule/syscall.c +++ b/src/common/event-rule/syscall.c @@ -244,7 +244,7 @@ lttng_event_rule_syscall_hash( return hash; } -struct lttng_event_rule *lttng_event_rule_syscall_create() +struct lttng_event_rule *lttng_event_rule_syscall_create(void) { struct lttng_event_rule *rule = NULL; struct lttng_event_rule_syscall *syscall_rule; diff --git a/src/common/event-rule/uprobe.c b/src/common/event-rule/uprobe.c index 2e64eaf89..09434b6d4 100644 --- a/src/common/event-rule/uprobe.c +++ b/src/common/event-rule/uprobe.c @@ -185,7 +185,7 @@ lttng_event_rule_uprobe_hash( return hash; } -struct lttng_event_rule *lttng_event_rule_uprobe_create() +struct lttng_event_rule *lttng_event_rule_uprobe_create(void) { struct lttng_event_rule *rule = NULL; struct lttng_event_rule_uprobe *urule; diff --git a/tests/regression/tools/notification/notification.c b/tests/regression/tools/notification/notification.c index e13979ee8..cc42e6153 100644 --- a/tests/regression/tools/notification/notification.c +++ b/tests/regression/tools/notification/notification.c @@ -171,7 +171,7 @@ error: } static -int resume_application() +int resume_application(void) { int ret; struct stat buf; diff --git a/tests/regression/ust/baddr-statedump/prog.c b/tests/regression/ust/baddr-statedump/prog.c index 7e84b808f..071a6c571 100644 --- a/tests/regression/ust/baddr-statedump/prog.c +++ b/tests/regression/ust/baddr-statedump/prog.c @@ -10,7 +10,7 @@ #define TRACEPOINT_DEFINE #include "tp.h" -int main() +int main(int argc, char **argv) { sleep(1); return 0; diff --git a/tests/regression/ust/fork/fork2.c b/tests/regression/ust/fork/fork2.c index 207288997..ffce5d0a1 100644 --- a/tests/regression/ust/fork/fork2.c +++ b/tests/regression/ust/fork/fork2.c @@ -12,7 +12,7 @@ #define TRACEPOINT_CREATE_PROBES #include "ust_tests_fork.h" -int main() +int main(int argc, char **argv) { printf("IN FORK2\n"); diff --git a/tests/unit/test_uri.c b/tests/unit/test_uri.c index 723bc2c1f..6ef0bf6e3 100644 --- a/tests/unit/test_uri.c +++ b/tests/unit/test_uri.c @@ -188,7 +188,7 @@ static void test_uri_parsing(void) assert(!uri); } -static void test_uri_cmp() +static void test_uri_cmp(void) { struct lttng_uri *uri1, *uri2; const char *s_uri1 = "net://localhost"; diff --git a/tests/unit/test_utils_compat_pthread.c b/tests/unit/test_utils_compat_pthread.c index d9e59bccd..eb2b7b6ec 100644 --- a/tests/unit/test_utils_compat_pthread.c +++ b/tests/unit/test_utils_compat_pthread.c @@ -13,7 +13,7 @@ #define TEST_NAME_PROPER_LEN 16 -int main() +int main(int argc, char **argv) { int ret; char name1[TEST_NAME_PROPER_LEN]; -- 2.34.1