diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-01-24 09:24:02 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-24 09:24:02 -0500 |
commit | 5f45a4bbc195400dd28e086c2e0e2f479b86e4eb (patch) | |
tree | ba85cc3d475bd57cfe310c5783ebe4e417a17164 /sway/input | |
parent | 75406bb93b96091d30e52922d0f319530fe65471 (diff) | |
parent | 5d6f906bd789f40fb0c58398909cfb39d44d4456 (diff) |
Merge pull request #3509 from ianyfan/log-errno
Use sway_log_errno instead of strerror
Diffstat (limited to 'sway/input')
-rw-r--r-- | sway/input/seat.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index fd5eda2d..b6ccd830 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -1,7 +1,6 @@ #define _POSIX_C_SOURCE 200809L -#include <assert.h> -#include <errno.h> #include <linux/input-event-codes.h> +#include <string.h> #include <strings.h> #include <time.h> #include <wlr/types/wlr_cursor.h> @@ -827,8 +826,7 @@ void seat_set_focus(struct sway_seat *seat, struct sway_node *node) { wl_event_source_timer_update(view->urgent_timer, config->urgent_timeout); } else { - sway_log(SWAY_ERROR, "Unable to create urgency timer (%s)", - strerror(errno)); + sway_log_errno(SWAY_ERROR, "Unable to create urgency timer"); handle_urgent_timeout(view); } } else { |