Selaa lähdekoodia

qnetd: Add void to register function declaration

This avoids warning produced by clang.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Jan Friesse 3 kuukautta sitten
vanhempi
commit
67d8670ba2

+ 1 - 1
qdevices/qnetd-algo-2nodelms.c

@@ -348,7 +348,7 @@ static struct qnetd_algorithm qnetd_algo_2nodelms = {
 	.timer_callback			= qnetd_algo_2nodelms_timer_callback,
 };
 
-enum tlv_reply_error_code qnetd_algo_2nodelms_register()
+enum tlv_reply_error_code qnetd_algo_2nodelms_register(void)
 {
 	return qnetd_algorithm_register(TLV_DECISION_ALGORITHM_TYPE_2NODELMS, &qnetd_algo_2nodelms);
 }

+ 1 - 1
qdevices/qnetd-algo-ffsplit.c

@@ -958,7 +958,7 @@ static struct qnetd_algorithm qnetd_algo_ffsplit = {
 	.timer_callback			= qnetd_algo_ffsplit_timer_callback,
 };
 
-enum tlv_reply_error_code qnetd_algo_ffsplit_register()
+enum tlv_reply_error_code qnetd_algo_ffsplit_register(void)
 {
 
 	return (qnetd_algorithm_register(TLV_DECISION_ALGORITHM_TYPE_FFSPLIT, &qnetd_algo_ffsplit));

+ 1 - 1
qdevices/qnetd-algo-lms.c

@@ -441,7 +441,7 @@ static struct qnetd_algorithm qnetd_algo_lms = {
 	.timer_callback			= qnetd_algo_lms_timer_callback,
 };
 
-enum tlv_reply_error_code qnetd_algo_lms_register()
+enum tlv_reply_error_code qnetd_algo_lms_register(void)
 {
 	return qnetd_algorithm_register(TLV_DECISION_ALGORITHM_TYPE_LMS, &qnetd_algo_lms);
 }

+ 1 - 1
qdevices/qnetd-algo-test.c

@@ -277,7 +277,7 @@ static struct qnetd_algorithm qnetd_algo_test = {
 	.timer_callback			= qnetd_algo_test_timer_callback,
 };
 
-enum tlv_reply_error_code qnetd_algo_test_register()
+enum tlv_reply_error_code qnetd_algo_test_register(void)
 {
 
 	return (qnetd_algorithm_register(TLV_DECISION_ALGORITHM_TYPE_TEST, &qnetd_algo_test));