aboutsummarylogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authorpancake@nopcode.org2010-11-24 14:27:44 +0100
committerpancake@nopcode.org2010-11-24 14:27:44 +0100
commit199e38d599022b24b52a78dccaf1689062a3b5d4 (patch)
tree4267bcf9317a7fc908696d391ad47dff9997adac /st.c
parent47da02fdf5533426415ffa353f3a3b1fa63d69fe (diff)
downloadaur-199e38d599022b24b52a78dccaf1689062a3b5d4.tar.gz
Fix unused variable issue and OSX includes
Diffstat (limited to 'st.c')
-rw-r--r--st.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/st.c b/st.c
index e7e292f43828..35945b04faa0 100644
--- a/st.c
+++ b/st.c
@@ -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;