summaryrefslogtreecommitdiffstats
path: root/cmd-new-session.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-12-10 20:25:42 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-12-10 20:25:42 +0000
commit5c3d973a4ae3b94db65a8198759ea911a6e097e8 (patch)
tree6d1d0b317a5c7fde6864f22cf58d83e1fb790ff0 /cmd-new-session.c
parent3b2859e9dcebc268241f76eec9a1b80b2dc3e129 (diff)
Import OpenBSD's getopt(3) to workaround broken glibc version.
Diffstat (limited to 'cmd-new-session.c')
-rw-r--r--cmd-new-session.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd-new-session.c b/cmd-new-session.c
index 626854ff..32bb94b4 100644
--- a/cmd-new-session.c
+++ b/cmd-new-session.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-new-session.c,v 1.31 2008-09-25 23:28:12 nicm Exp $ */
+/* $Id: cmd-new-session.c,v 1.32 2008-12-10 20:25:41 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -18,8 +18,6 @@
#include <sys/types.h>
-#include <getopt.h>
-
#include "tmux.h"
/*
@@ -75,7 +73,7 @@ cmd_new_session_parse(struct cmd *self, int argc, char **argv, char **cause)
self->entry->init(self, 0);
data = self->data;
- while ((opt = getopt(argc, argv, GETOPT_PREFIX "ds:n:")) != EOF) {
+ while ((opt = getopt(argc, argv, "ds:n:")) != -1) {
switch (opt) {
case 'd':
data->flag_detached = 1;