summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-07-13 14:56:07 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-07-16 12:17:40 -0400
commit85584734ce4bb6a1955f446c294fdf041a20e610 (patch)
treeb159b8d4b25f3895f88d2e679e3940f79daedd39
parentChange to size_t in swaylock's get_config_path (diff)
downloadsway-85584734ce4bb6a1955f446c294fdf041a20e610.tar.gz
sway-85584734ce4bb6a1955f446c294fdf041a20e610.tar.zst
sway-85584734ce4bb6a1955f446c294fdf041a20e610.zip
Remove int cast after changing to size_t
-rw-r--r--swaylock/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaylock/main.c b/swaylock/main.c
index ebd87d32..fd838ec3 100644
--- a/swaylock/main.c
+++ b/swaylock/main.c
@@ -716,7 +716,7 @@ static char *get_config_path(void) {
716 716
717 wordexp_t p; 717 wordexp_t p;
718 char *path; 718 char *path;
719 for (size_t i = 0; i < (int)(sizeof(config_paths) / sizeof(char *)); ++i) { 719 for (size_t i = 0; i < (sizeof(config_paths) / sizeof(char *)); ++i) {
720 if (wordexp(config_paths[i], &p, 0) == 0) { 720 if (wordexp(config_paths[i], &p, 0) == 0) {
721 path = strdup(p.we_wordv[0]); 721 path = strdup(p.we_wordv[0]);
722 wordfree(&p); 722 wordfree(&p);