all repos — st @ eaf38bf310a3c7850df2444fcdd77683ab8e4dc2

st (suckless terminal) config

Fix unused variable issue and OSX includes
pancake@nopcode.org unknown
commit

eaf38bf310a3c7850df2444fcdd77683ab8e4dc2

parent

b61925b5d6fd8af0ad0ccc922db60dff1746cfe2

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M st.cst.c

@@ -23,7 +23,7 @@ #include <X11/Xutil.h>

#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;