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 | eaf38bf310a3c7850df2444fcdd77683ab8e4dc2 (patch) | |
| tree | 98fac2a09301153c0440040289daa99cd9cab4c4 | |
| parent | b61925b5d6fd8af0ad0ccc922db60dff1746cfe2 (diff) | |
| download | st-eaf38bf310a3c7850df2444fcdd77683ab8e4dc2.tar.gz st-eaf38bf310a3c7850df2444fcdd77683ab8e4dc2.zip | |
Fix unused variable issue and OSX includes
| -rw-r--r-- | st.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -23,7 +23,7 @@ | |||
| 23 | 23 | ||
| 24 | #if defined(__linux) | 24 | #if defined(__linux) |
| 25 | #include <pty.h> | 25 | #include <pty.h> |
| 26 | #elif defined(__OpenBSD__) || defined(__NetBSD__) | 26 | #elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__) |
| 27 | #include <util.h> | 27 | #include <util.h> |
| 28 | #elif defined(__FreeBSD__) || defined(__DragonFly__) | 28 | #elif defined(__FreeBSD__) || defined(__DragonFly__) |
| 29 | #include <libutil.h> | 29 | #include <libutil.h> |
| @@ -405,7 +405,7 @@ bpress(XEvent *e) { | |||
| 405 | void | 405 | void |
| 406 | selcopy(void) { | 406 | selcopy(void) { |
| 407 | char *str, *ptr; | 407 | char *str, *ptr; |
| 408 | int ls, x, y, sz, sl; | 408 | int x, y, sz, sl, ls = 0; |
| 409 | 409 | ||
| 410 | if(sel.bx == -1) | 410 | if(sel.bx == -1) |
| 411 | str = NULL; | 411 | str = NULL; |
