diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-12-10 20:25:42 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-12-10 20:25:42 +0000 |
commit | 5c3d973a4ae3b94db65a8198759ea911a6e097e8 (patch) | |
tree | 6d1d0b317a5c7fde6864f22cf58d83e1fb790ff0 /cmd-unbind-key.c | |
parent | 3b2859e9dcebc268241f76eec9a1b80b2dc3e129 (diff) |
Import OpenBSD's getopt(3) to workaround broken glibc version.
Diffstat (limited to 'cmd-unbind-key.c')
-rw-r--r-- | cmd-unbind-key.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd-unbind-key.c b/cmd-unbind-key.c index c5074a77..7dcd1d5f 100644 --- a/cmd-unbind-key.c +++ b/cmd-unbind-key.c @@ -1,4 +1,4 @@ -/* $Id: cmd-unbind-key.c,v 1.14 2008-09-25 23:28:15 nicm Exp $ */ +/* $Id: cmd-unbind-key.c,v 1.15 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" /* @@ -57,7 +55,7 @@ cmd_unbind_key_parse(struct cmd *self, int argc, char **argv, char **cause) self->data = data = xmalloc(sizeof *data); - while ((opt = getopt(argc, argv, GETOPT_PREFIX "")) != EOF) { + while ((opt = getopt(argc, argv, "")) != -1) { switch (opt) { default: goto usage; |