changeset: 429:d7a77a27b16c
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Sun Jul 17 14:06:53 2011 +0100
files: dmenu.c lsx.c
description:
tweaks
diff -r c0080bf8e22c -r d7a77a27b16c dmenu.c
--- a/dmenu.c Thu Jul 14 20:03:08 2011 +0100
+++ b/dmenu.c Sun Jul 17 14:06:53 2011 +0100
@@ -279,6 +279,7 @@
if(text[cursor] == '\0')
return;
cursor = nextrune(+1);
+ /* fallthrough */
case XK_BackSpace:
if(cursor == 0)
return;
diff -r c0080bf8e22c -r d7a77a27b16c lsx.c
--- a/lsx.c Thu Jul 14 20:03:08 2011 +0100
+++ b/lsx.c Sun Jul 17 14:06:53 2011 +0100
@@ -3,7 +3,6 @@
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
@@ -32,7 +31,7 @@
return;
}
while((d = readdir(dp)))
- if(snprintf(buf, sizeof buf, "%s/%s", dir, d->d_name) < (ssize_t)sizeof buf
+ if(snprintf(buf, sizeof buf, "%s/%s", dir, d->d_name) < (int)sizeof buf
&& !stat(buf, &st) && S_ISREG(st.st_mode) && access(buf, X_OK) == 0)
puts(d->d_name);
closedir(dp);
Received on Sun Jul 17 2011 - 15:06:59 CEST
This archive was generated by hypermail 2.2.0 : Sun Jul 17 2011 - 15:12:04 CEST