aboutsummaryrefslogtreecommitdiff
path: root/tmux.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-11-04 12:41:43 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-11-04 12:41:43 +0000
commitd2dfbef05a2162b7b48c6ed82459c9d998f643db (patch)
treea08a41b231f5ffe8df67f4443a78e833453922ac /tmux.c
parentd8332e637354a55ba4caa46f5030fc5d7e5898db (diff)
downloadrtmux-d2dfbef05a2162b7b48c6ed82459c9d998f643db.tar.gz
rtmux-d2dfbef05a2162b7b48c6ed82459c9d998f643db.tar.bz2
rtmux-d2dfbef05a2162b7b48c6ed82459c9d998f643db.zip
Change declaration and use of malloc_options to be more standard, from Tim van
der Molen.
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tmux.c b/tmux.c
index 51f8dbef..ba634c6a 100644
--- a/tmux.c
+++ b/tmux.c
@@ -31,7 +31,7 @@
#include "tmux.h"
#ifdef DEBUG
-const char *malloc_options = "AFGJPX";
+extern char *malloc_options;
#endif
volatile sig_atomic_t sigwinch;
@@ -299,6 +299,10 @@ main(int argc, char **argv)
size_t len;
int nfds, retcode, opt, flags, cmdflags = 0;
+#ifdef DEBUG
+ malloc_options = (char *) "AFGJPX";
+#endif
+
flags = 0;
shellcmd = label = path = NULL;
login_shell = (**argv == '-');