Clean-up: replace erroneous of empty parameter list by void
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 12 Jan 2021 20:36:00 +0000 (15:36 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 12 Jan 2021 20:45:01 +0000 (15:45 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I951feeed92b346e79e34bec45a14f8b226283ae4

src/bin/lttng/commands/version.c
src/common/config/session-config.c
src/common/event-rule/kprobe.c
src/common/event-rule/syscall.c
src/common/event-rule/uprobe.c
tests/regression/tools/notification/notification.c
tests/regression/ust/baddr-statedump/prog.c
tests/regression/ust/fork/fork2.c
tests/unit/test_uri.c
tests/unit/test_utils_compat_pthread.c

index b720d2a0d463bfc8a04dd799a0569467f748581a..9f606bf44396bcad8a8e60dfc54662a044356f3d 100644 (file)
@@ -56,7 +56,7 @@ static void create_version(struct mi_lttng_version *version)
 /*
  * Print the machine interface output of this command.
  */
 /*
  * 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;
 {
        int ret = CMD_SUCCESS;
        struct mi_writer *writer = NULL;
index 37c5ce383962e1b278e150a9dfac0a063998fd4e..49c06a3531b874d734ac03659f8b09f14d1f0132 100644 (file)
@@ -712,7 +712,7 @@ void fini_session_config_validation_ctx(
 }
 
 static
 }
 
 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);
 {
        char *xsd_path;
        const char *base_path = lttng_secure_getenv(DEFAULT_SESSION_CONFIG_XSD_PATH_ENV);
index 15dabdde3d0ceca5e8f334c20255ba1132999d83..6ec5cd402df5c590ab115a1384d6e5e34ec161b9 100644 (file)
@@ -193,7 +193,7 @@ lttng_event_rule_kprobe_hash(
        return 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;
 {
        struct lttng_event_rule *rule = NULL;
        struct lttng_event_rule_kprobe *krule;
index 51f22fcc0ff85602d680f5216d790dc48f1c38a8..fde01019e0416c93c25afc75b10988087687ccc7 100644 (file)
@@ -244,7 +244,7 @@ lttng_event_rule_syscall_hash(
        return 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;
 {
        struct lttng_event_rule *rule = NULL;
        struct lttng_event_rule_syscall *syscall_rule;
index 2e64eaf898bd69880eaaff0208339b1c154e1665..09434b6d41f8ab965542b5731432423cce68bdfd 100644 (file)
@@ -185,7 +185,7 @@ lttng_event_rule_uprobe_hash(
        return 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;
 {
        struct lttng_event_rule *rule = NULL;
        struct lttng_event_rule_uprobe *urule;
index e13979ee8ca385f2de36347fb529f548e4d72eab..cc42e6153c452bb209d887a68e14812286e4fc6c 100644 (file)
@@ -171,7 +171,7 @@ error:
 }
 
 static
 }
 
 static
-int resume_application()
+int resume_application(void)
 {
        int ret;
        struct stat buf;
 {
        int ret;
        struct stat buf;
index 7e84b808f22acc248bac306c15f7e112e376e21e..071a6c5719c38d141e560e1628722c79c33a0c02 100644 (file)
@@ -10,7 +10,7 @@
 #define TRACEPOINT_DEFINE
 #include "tp.h"
 
 #define TRACEPOINT_DEFINE
 #include "tp.h"
 
-int main()
+int main(int argc, char **argv)
 {
        sleep(1);
        return 0;
 {
        sleep(1);
        return 0;
index 207288997ecca061c940cd2dfb25ac54286c0fe6..ffce5d0a1569650a9f96f4970cb9c16a3045ca73 100644 (file)
@@ -12,7 +12,7 @@
 #define TRACEPOINT_CREATE_PROBES
 #include "ust_tests_fork.h"
 
 #define TRACEPOINT_CREATE_PROBES
 #include "ust_tests_fork.h"
 
-int main()
+int main(int argc, char **argv)
 {
        printf("IN FORK2\n");
 
 {
        printf("IN FORK2\n");
 
index 723bc2c1f2ebcc46716d8cabb63d49d9de0366b3..6ef0bf6e327ef809a3d51664e7507110b1a0a396 100644 (file)
@@ -188,7 +188,7 @@ static void test_uri_parsing(void)
        assert(!uri);
 }
 
        assert(!uri);
 }
 
-static void test_uri_cmp()
+static void test_uri_cmp(void)
 {
        struct lttng_uri *uri1, *uri2;
        const char *s_uri1 = "net://localhost";
 {
        struct lttng_uri *uri1, *uri2;
        const char *s_uri1 = "net://localhost";
index d9e59bccd7687ee86ae39b3e75c58dc6561ee1e5..eb2b7b6ec2cf524947427bba6697d88d844812ed 100644 (file)
@@ -13,7 +13,7 @@
 
 #define TEST_NAME_PROPER_LEN 16
 
 
 #define TEST_NAME_PROPER_LEN 16
 
-int main()
+int main(int argc, char **argv)
 {
        int ret;
        char name1[TEST_NAME_PROPER_LEN];
 {
        int ret;
        char name1[TEST_NAME_PROPER_LEN];
This page took 0.029807 seconds and 4 git commands to generate.