mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-30 03:54:10 +01:00
Sync OpenBSD patchset 342:
Use KEYC_NONE constant instead of 0 on init.
This commit is contained in:
parent
480211f0ee
commit
31ccf2f813
@ -1,4 +1,4 @@
|
|||||||
/* $Id: cmd-command-prompt.c,v 1.25 2009-08-25 13:53:39 tcunha Exp $ */
|
/* $Id: cmd-command-prompt.c,v 1.26 2009-09-22 14:06:40 tcunha Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -90,7 +90,7 @@ cmd_command_prompt_parse(struct cmd *self, int argc, char **argv, char **cause)
|
|||||||
struct cmd_command_prompt_data *data;
|
struct cmd_command_prompt_data *data;
|
||||||
int opt;
|
int opt;
|
||||||
|
|
||||||
self->entry->init(self, 0);
|
self->entry->init(self, KEYC_NONE);
|
||||||
data = self->data;
|
data = self->data;
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "p:t:")) != -1) {
|
while ((opt = getopt(argc, argv, "p:t:")) != -1) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $Id: cmd-copy-buffer.c,v 1.4 2009-09-07 23:48:54 tcunha Exp $ */
|
/* $Id: cmd-copy-buffer.c,v 1.5 2009-09-22 14:06:40 tcunha Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
|
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
|
||||||
@ -70,7 +70,7 @@ cmd_copy_buffer_parse(struct cmd *self, int argc, char **argv, char **cause)
|
|||||||
const char *errstr;
|
const char *errstr;
|
||||||
int n, opt;
|
int n, opt;
|
||||||
|
|
||||||
self->entry->init(self, 0);
|
self->entry->init(self, KEYC_NONE);
|
||||||
data = self->data;
|
data = self->data;
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "a:b:s:t:")) != -1) {
|
while ((opt = getopt(argc, argv, "a:b:s:t:")) != -1) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $Id: cmd-if-shell.c,v 1.4 2009-07-28 22:12:16 tcunha Exp $ */
|
/* $Id: cmd-if-shell.c,v 1.5 2009-09-22 14:06:40 tcunha Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
|
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
|
||||||
@ -66,7 +66,7 @@ cmd_if_shell_parse(struct cmd *self, int argc, char **argv, char **cause)
|
|||||||
struct cmd_if_shell_data *data;
|
struct cmd_if_shell_data *data;
|
||||||
int opt;
|
int opt;
|
||||||
|
|
||||||
self->entry->init(self, 0);
|
self->entry->init(self, KEYC_NONE);
|
||||||
data = self->data;
|
data = self->data;
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "")) != -1) {
|
while ((opt = getopt(argc, argv, "")) != -1) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $Id: cmd-new-session.c,v 1.66 2009-09-16 12:36:27 nicm Exp $ */
|
/* $Id: cmd-new-session.c,v 1.67 2009-09-22 14:06:40 tcunha Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -70,7 +70,7 @@ cmd_new_session_parse(struct cmd *self, int argc, char **argv, char **cause)
|
|||||||
struct cmd_new_session_data *data;
|
struct cmd_new_session_data *data;
|
||||||
int opt;
|
int opt;
|
||||||
|
|
||||||
self->entry->init(self, 0);
|
self->entry->init(self, KEYC_NONE);
|
||||||
data = self->data;
|
data = self->data;
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "ds:n:")) != -1) {
|
while ((opt = getopt(argc, argv, "ds:n:")) != -1) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $Id: cmd-new-window.c,v 1.37 2009-08-16 19:16:27 tcunha Exp $ */
|
/* $Id: cmd-new-window.c,v 1.38 2009-09-22 14:06:40 tcunha Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -70,7 +70,7 @@ cmd_new_window_parse(struct cmd *self, int argc, char **argv, char **cause)
|
|||||||
struct cmd_new_window_data *data;
|
struct cmd_new_window_data *data;
|
||||||
int opt;
|
int opt;
|
||||||
|
|
||||||
self->entry->init(self, 0);
|
self->entry->init(self, KEYC_NONE);
|
||||||
data = self->data;
|
data = self->data;
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "dkt:n:")) != -1) {
|
while ((opt = getopt(argc, argv, "dkt:n:")) != -1) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $Id: cmd-set-password.c,v 1.8 2009-07-28 22:12:16 tcunha Exp $ */
|
/* $Id: cmd-set-password.c,v 1.9 2009-09-22 14:06:40 tcunha Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -66,7 +66,7 @@ cmd_set_password_parse(struct cmd *self, int argc, char **argv, char **cause)
|
|||||||
int opt;
|
int opt;
|
||||||
char *out;
|
char *out;
|
||||||
|
|
||||||
self->entry->init(self, 0);
|
self->entry->init(self, KEYC_NONE);
|
||||||
data = self->data;
|
data = self->data;
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "c")) != -1) {
|
while ((opt = getopt(argc, argv, "c")) != -1) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $Id: cmd-source-file.c,v 1.8 2009-08-24 16:27:03 tcunha Exp $ */
|
/* $Id: cmd-source-file.c,v 1.9 2009-09-22 14:06:40 tcunha Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2008 Tiago Cunha <me@tiagocunha.org>
|
* Copyright (c) 2008 Tiago Cunha <me@tiagocunha.org>
|
||||||
@ -60,7 +60,7 @@ cmd_source_file_parse(struct cmd *self, int argc, char **argv, char **cause)
|
|||||||
struct cmd_source_file_data *data;
|
struct cmd_source_file_data *data;
|
||||||
int opt;
|
int opt;
|
||||||
|
|
||||||
self->entry->init(self, 0);
|
self->entry->init(self, KEYC_NONE);
|
||||||
data = self->data;
|
data = self->data;
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "")) != -1) {
|
while ((opt = getopt(argc, argv, "")) != -1) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $Id: cmd-split-window.c,v 1.27 2009-09-16 12:36:27 nicm Exp $ */
|
/* $Id: cmd-split-window.c,v 1.28 2009-09-22 14:06:40 tcunha Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -83,7 +83,7 @@ cmd_split_window_parse(struct cmd *self, int argc, char **argv, char **cause)
|
|||||||
int opt;
|
int opt;
|
||||||
const char *errstr;
|
const char *errstr;
|
||||||
|
|
||||||
self->entry->init(self, 0);
|
self->entry->init(self, KEYC_NONE);
|
||||||
data = self->data;
|
data = self->data;
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "dhl:p:t:v")) != -1) {
|
while ((opt = getopt(argc, argv, "dhl:p:t:v")) != -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user