diff options
author | pancake@nopcode.org <unknown> | 2010-11-24 14:27:44 +0100 |
---|---|---|
committer | pancake@nopcode.org <unknown> | 2010-11-24 14:27:44 +0100 |
commit | 94ddc3e0c480c59941599605bb52b4a96fff72bf (patch) | |
tree | 98fac2a09301153c0440040289daa99cd9cab4c4 | |
parent | 37f079e06301447bad835e06a26d74c72363cb58 (diff) | |
download | st-94ddc3e0c480c59941599605bb52b4a96fff72bf.tar.gz st-94ddc3e0c480c59941599605bb52b4a96fff72bf.tar.bz2 |
Fix unused variable issue and OSX includes
-rw-r--r-- | st.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -23,7 +23,7 @@ #if defined(__linux) #include <pty.h> -#elif defined(__OpenBSD__) || defined(__NetBSD__) +#elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__) #include <util.h> #elif defined(__FreeBSD__) || defined(__DragonFly__) #include <libutil.h> @@ -405,7 +405,7 @@ bpress(XEvent *e) { void selcopy(void) { char *str, *ptr; - int ls, x, y, sz, sl; + int x, y, sz, sl, ls = 0; if(sel.bx == -1) str = NULL; |