aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/session/logind.c2
-rw-r--r--backend/wayland/wl_seat.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/backend/session/logind.c b/backend/session/logind.c
index 0bacfbcd..8f4e328d 100644
--- a/backend/session/logind.c
+++ b/backend/session/logind.c
@@ -440,7 +440,7 @@ static bool add_signal_matches(struct logind_session *session) {
int ret;
char str[256];
- const char *fmt = "type='signal',"
+ const char fmt[] = "type='signal',"
"sender='org.freedesktop.login1',"
"interface='org.freedesktop.login1.%s',"
"member='%s',"
diff --git a/backend/wayland/wl_seat.c b/backend/wayland/wl_seat.c
index 1229a0ac..6c8eb4f3 100644
--- a/backend/wayland/wl_seat.c
+++ b/backend/wayland/wl_seat.c
@@ -194,7 +194,7 @@ static void keyboard_handle_keymap(void *data, struct wl_keyboard *wl_keyboard,
// TODO: set keymap
}
-static uint32_t get_current_time_msec() {
+static uint32_t get_current_time_msec(void) {
struct timespec now;
clock_gettime(CLOCK_MONOTONIC, &now);
return now.tv_nsec / 1000;