aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dmenu.c1
-rw-r--r--lsx.c3
2 files changed, 2 insertions, 2 deletions
diff --git a/dmenu.c b/dmenu.c
index cff3e65..fd98d54 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -279,6 +279,7 @@ keypress(XKeyEvent *ev) {
279 if(text[cursor] == '\0') 279 if(text[cursor] == '\0')
280 return; 280 return;
281 cursor = nextrune(+1); 281 cursor = nextrune(+1);
282 /* fallthrough */
282 case XK_BackSpace: 283 case XK_BackSpace:
283 if(cursor == 0) 284 if(cursor == 0)
284 return; 285 return;
diff --git a/lsx.c b/lsx.c
index 79b506b..f337a4a 100644
--- a/lsx.c
+++ b/lsx.c
@@ -3,7 +3,6 @@
3#include <limits.h> 3#include <limits.h>
4#include <stdio.h> 4#include <stdio.h>
5#include <stdlib.h> 5#include <stdlib.h>
6#include <string.h>
7#include <unistd.h> 6#include <unistd.h>
8#include <sys/stat.h> 7#include <sys/stat.h>
9 8
@@ -32,7 +31,7 @@ lsx(const char *dir) {
32 return; 31 return;
33 } 32 }
34 while((d = readdir(dp))) 33 while((d = readdir(dp)))
35 if(snprintf(buf, sizeof buf, "%s/%s", dir, d->d_name) < (ssize_t)sizeof buf 34 if(snprintf(buf, sizeof buf, "%s/%s", dir, d->d_name) < (int)sizeof buf
36 && !stat(buf, &st) && S_ISREG(st.st_mode) && access(buf, X_OK) == 0) 35 && !stat(buf, &st) && S_ISREG(st.st_mode) && access(buf, X_OK) == 0)
37 puts(d->d_name); 36 puts(d->d_name);
38 closedir(dp); 37 closedir(dp);