From 6fab9a3e6f0a18ce63662fceedb87e96f2680d83 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 21 Sep 2009 15:32:06 +0000 Subject: [PATCH] Use KEYC_NONE constant instead of 0 on init. --- cmd-command-prompt.c | 2 +- cmd-copy-buffer.c | 2 +- cmd-if-shell.c | 2 +- cmd-new-session.c | 2 +- cmd-new-window.c | 2 +- cmd-set-password.c | 2 +- cmd-source-file.c | 2 +- cmd-split-window.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cmd-command-prompt.c b/cmd-command-prompt.c index 6aee2ec0..bcbde064 100644 --- a/cmd-command-prompt.c +++ b/cmd-command-prompt.c @@ -90,7 +90,7 @@ cmd_command_prompt_parse(struct cmd *self, int argc, char **argv, char **cause) struct cmd_command_prompt_data *data; int opt; - self->entry->init(self, 0); + self->entry->init(self, KEYC_NONE); data = self->data; while ((opt = getopt(argc, argv, "p:t:")) != -1) { diff --git a/cmd-copy-buffer.c b/cmd-copy-buffer.c index 695c909c..98166c4b 100644 --- a/cmd-copy-buffer.c +++ b/cmd-copy-buffer.c @@ -70,7 +70,7 @@ cmd_copy_buffer_parse(struct cmd *self, int argc, char **argv, char **cause) const char *errstr; int n, opt; - self->entry->init(self, 0); + self->entry->init(self, KEYC_NONE); data = self->data; while ((opt = getopt(argc, argv, "a:b:s:t:")) != -1) { diff --git a/cmd-if-shell.c b/cmd-if-shell.c index 86502a7f..e84efa84 100644 --- a/cmd-if-shell.c +++ b/cmd-if-shell.c @@ -66,7 +66,7 @@ cmd_if_shell_parse(struct cmd *self, int argc, char **argv, char **cause) struct cmd_if_shell_data *data; int opt; - self->entry->init(self, 0); + self->entry->init(self, KEYC_NONE); data = self->data; while ((opt = getopt(argc, argv, "")) != -1) { diff --git a/cmd-new-session.c b/cmd-new-session.c index 467fa879..2aafdb1b 100644 --- a/cmd-new-session.c +++ b/cmd-new-session.c @@ -69,7 +69,7 @@ cmd_new_session_parse(struct cmd *self, int argc, char **argv, char **cause) struct cmd_new_session_data *data; int opt; - self->entry->init(self, 0); + self->entry->init(self, KEYC_NONE); data = self->data; while ((opt = getopt(argc, argv, "ds:n:")) != -1) { diff --git a/cmd-new-window.c b/cmd-new-window.c index b3ec4379..bbffad14 100644 --- a/cmd-new-window.c +++ b/cmd-new-window.c @@ -70,7 +70,7 @@ cmd_new_window_parse(struct cmd *self, int argc, char **argv, char **cause) struct cmd_new_window_data *data; int opt; - self->entry->init(self, 0); + self->entry->init(self, KEYC_NONE); data = self->data; while ((opt = getopt(argc, argv, "dkt:n:")) != -1) { diff --git a/cmd-set-password.c b/cmd-set-password.c index 39b48eee..1a6da3f1 100644 --- a/cmd-set-password.c +++ b/cmd-set-password.c @@ -66,7 +66,7 @@ cmd_set_password_parse(struct cmd *self, int argc, char **argv, char **cause) int opt; char *out; - self->entry->init(self, 0); + self->entry->init(self, KEYC_NONE); data = self->data; while ((opt = getopt(argc, argv, "c")) != -1) { diff --git a/cmd-source-file.c b/cmd-source-file.c index 247b06ec..2cb47c6e 100644 --- a/cmd-source-file.c +++ b/cmd-source-file.c @@ -60,7 +60,7 @@ cmd_source_file_parse(struct cmd *self, int argc, char **argv, char **cause) struct cmd_source_file_data *data; int opt; - self->entry->init(self, 0); + self->entry->init(self, KEYC_NONE); data = self->data; while ((opt = getopt(argc, argv, "")) != -1) { diff --git a/cmd-split-window.c b/cmd-split-window.c index 1604d9e2..a1a012a2 100644 --- a/cmd-split-window.c +++ b/cmd-split-window.c @@ -84,7 +84,7 @@ cmd_split_window_parse(struct cmd *self, int argc, char **argv, char **cause) int opt; const char *errstr; - self->entry->init(self, 0); + self->entry->init(self, KEYC_NONE); data = self->data; while ((opt = getopt(argc, argv, "dhl:p:t:v")) != -1) {