changeset: 169:11071988f994
tag: tip
user: pancake_AT_nopcode.org
date: Wed Nov 24 14:27:44 2010 +0100
files: st.c
description:
Fix unused variable issue and OSX includes
diff -r d03194c0972b -r 11071988f994 st.c
--- a/st.c Sat Nov 20 22:24:04 2010 +0100
+++ b/st.c Wed Nov 24 14:27:44 2010 +0100
@@ -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 @@
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;
Received on Wed Nov 24 2010 - 14:27:49 CET
This archive was generated by hypermail 2.2.0 : Wed Nov 24 2010 - 14:36:04 CET