aboutsummaryrefslogtreecommitdiff
path: root/tmux.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-07-30 20:21:55 +0000
committerTiago Cunha <tcunha@gmx.com>2009-07-30 20:21:55 +0000
commit6fbfcfc0d78c9b00181bb2465ede73b18ac92cef (patch)
tree0ce9baddae86cbe0fe3c30b343bf27b4c1f5e002 /tmux.c
parent5a9b7b230cc22728b39845e212ff9ff939d1f678 (diff)
downloadrtmux-6fbfcfc0d78c9b00181bb2465ede73b18ac92cef.tar.gz
rtmux-6fbfcfc0d78c9b00181bb2465ede73b18ac92cef.tar.bz2
rtmux-6fbfcfc0d78c9b00181bb2465ede73b18ac92cef.zip
Sync OpenBSD patchset 196:
Rename struct hdrtype to msgtype which is a better name and can be used even when struct hdr disappears.
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tmux.c b/tmux.c
index f8c4f1f1..b20e36b4 100644
--- a/tmux.c
+++ b/tmux.c
@@ -1,4 +1,4 @@
-/* $Id: tmux.c,v 1.151 2009-07-30 20:17:25 tcunha Exp $ */
+/* $Id: tmux.c,v 1.152 2009-07-30 20:21:55 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -62,8 +62,8 @@ char *socket_path;
__dead void usage(void);
char *makesockpath(const char *);
-int prepare_unlock(enum hdrtype *, void **, size_t *, int);
-int prepare_cmd(enum hdrtype *, void **, size_t *, int, char **);
+int prepare_unlock(enum msgtype *, void **, size_t *, int);
+int prepare_cmd(enum msgtype *, void **, size_t *, int, char **);
#ifndef HAVE_PROGNAME
char *__progname = (char *) "tmux";
@@ -212,7 +212,7 @@ makesockpath(const char *label)
}
int
-prepare_unlock(enum hdrtype *msg, void **buf, size_t *len, int argc)
+prepare_unlock(enum msgtype *msg, void **buf, size_t *len, int argc)
{
static struct msg_unlock_data unlockdata;
char *pass;
@@ -241,7 +241,7 @@ prepare_unlock(enum hdrtype *msg, void **buf, size_t *len, int argc)
}
int
-prepare_cmd(enum hdrtype *msg, void **buf, size_t *len, int argc, char **argv)
+prepare_cmd(enum msgtype *msg, void **buf, size_t *len, int argc, char **argv)
{
static struct msg_command_data cmddata;
@@ -267,7 +267,7 @@ main(int argc, char **argv)
struct cmd_list *cmdlist;
struct cmd *cmd;
struct pollfd pfd;
- enum hdrtype msg;
+ enum msgtype msg;
struct hdr hdr;
struct passwd *pw;
struct msg_print_data printdata;