aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/core
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2022-11-03 11:05:58 +0100
committerHarald Welte <laforge@osmocom.org>2022-11-03 12:44:28 +0100
commite61d459cef11a599008e179b16d5b09cdd88bc95 (patch)
tree8d046c40e5ef3d37131cd2ec3408cb69b303e13d /include/osmocom/core
parent0d9b6b0e31f2d608c9ac18a861a905a94b978702 (diff)
Support building with -Werror=strict-prototypes / -Werror=old-style-definition
Unfortunately "-std=c99" is not sufficient to make gcc ignore code that uses constructs of earlier C standards, which were abandoned in C99. See https://lwn.net/ml/fedora-devel/Y1kvF35WozzGBpc8@redhat.com/ for some related discussion. Change-Id: I84fd99442d0cc400fa562fa33623c142649230e2
Diffstat (limited to 'include/osmocom/core')
-rw-r--r--include/osmocom/core/counter.h2
-rw-r--r--include/osmocom/core/select.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/include/osmocom/core/counter.h b/include/osmocom/core/counter.h
index 0d56bc4a..7b677cb1 100644
--- a/include/osmocom/core/counter.h
+++ b/include/osmocom/core/counter.h
@@ -52,7 +52,7 @@ void osmo_counter_free(struct osmo_counter *ctr)
int osmo_counters_for_each(int (*handle_counter)(struct osmo_counter *, void *), void *data);
-int osmo_counters_count();
+int osmo_counters_count(void);
struct osmo_counter *osmo_counter_get_by_name(const char *name);
diff --git a/include/osmocom/core/select.h b/include/osmocom/core/select.h
index e9f19a56..fc148512 100644
--- a/include/osmocom/core/select.h
+++ b/include/osmocom/core/select.h
@@ -105,8 +105,8 @@ struct osmo_signalfd {
struct osmo_signalfd *
osmo_signalfd_setup(void *ctx, sigset_t set, osmo_signalfd_cb *cb, void *data);
-void osmo_select_shutdown_request();
-int osmo_select_shutdown_requested();
-bool osmo_select_shutdown_done();
+void osmo_select_shutdown_request(void);
+int osmo_select_shutdown_requested(void);
+bool osmo_select_shutdown_done(void);
/*! @} */