aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/input-method.c4
-rw-r--r--examples/text-input.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/input-method.c b/examples/input-method.c
index 4e375306..9276e159 100644
--- a/examples/input-method.c
+++ b/examples/input-method.c
@@ -176,7 +176,7 @@ static void timer_arm(unsigned seconds) {
}
}
-static void do_updates() {
+static void do_updates(void) {
printf("Update %d\n", update_stage);
switch (update_stage) {
case 0:
@@ -240,7 +240,7 @@ static void do_updates() {
};
}
-static void handle_timer() {
+static void handle_timer(void) {
printf("Timer dispatched at %d\n", update_stage);
do_updates();
}
diff --git a/examples/text-input.c b/examples/text-input.c
index 3ccd99a0..ac3c8a44 100644
--- a/examples/text-input.c
+++ b/examples/text-input.c
@@ -102,7 +102,7 @@ static size_t utf8_offset(char *utf8_str, size_t byte_offset) {
}
// TODO: would be nicer to have this text display inside the window
-static void show_status() {
+static void show_status(void) {
printf("State %d:", serial);
if (!enabled) {
printf(" disabled");