aboutsummaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-08-27 13:45:26 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-08-27 13:45:26 +0000
commit04f4e4219b63187630aab706f65245e2ea1ade5a (patch)
tree65b22a0f5bdb79daa7dbc6aafa1d1ce496154d53 /command.c
parent6e210bb005ee5193fe030f5e8cfe8877aac6260d (diff)
downloadrtmux-04f4e4219b63187630aab706f65245e2ea1ade5a.tar.gz
rtmux-04f4e4219b63187630aab706f65245e2ea1ade5a.tar.bz2
rtmux-04f4e4219b63187630aab706f65245e2ea1ade5a.zip
Change command format.
Diffstat (limited to 'command.c')
-rw-r--r--command.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/command.c b/command.c
index 5c8e18ef..35c05779 100644
--- a/command.c
+++ b/command.c
@@ -1,4 +1,4 @@
-/* $Id: command.c,v 1.2 2007-08-27 10:30:28 nicm Exp $ */
+/* $Id: command.c,v 1.3 2007-08-27 13:45:26 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -83,7 +83,7 @@ cmd_fn_select(struct buffer *srv_out, int arg)
struct hdr hdr;
struct select_data data;
- hdr.code = MSG_SELECT;
+ hdr.type = MSG_SELECT;
hdr.size = sizeof data;
buffer_write(srv_out, &hdr, sizeof hdr);
data.idx = arg;
@@ -98,7 +98,7 @@ cmd_fn_create(struct buffer *srv_out, unused int arg)
{
struct hdr hdr;
- hdr.code = MSG_CREATE;
+ hdr.type = MSG_CREATE;
hdr.size = 0;
buffer_write(srv_out, &hdr, sizeof hdr);
@@ -118,7 +118,7 @@ cmd_fn_next(struct buffer *srv_out, unused int arg)
{
struct hdr hdr;
- hdr.code = MSG_NEXT;
+ hdr.type = MSG_NEXT;
hdr.size = 0;
buffer_write(srv_out, &hdr, sizeof hdr);
@@ -131,7 +131,7 @@ cmd_fn_previous(struct buffer *srv_out, unused int arg)
{
struct hdr hdr;
- hdr.code = MSG_PREVIOUS;
+ hdr.type = MSG_PREVIOUS;
hdr.size = 0;
buffer_write(srv_out, &hdr, sizeof hdr);
@@ -144,7 +144,7 @@ cmd_fn_refresh(struct buffer *srv_out, unused int arg)
{
struct hdr hdr;
- hdr.code = MSG_REFRESH;
+ hdr.type = MSG_REFRESH;
hdr.size = 0;
buffer_write(srv_out, &hdr, sizeof hdr);
@@ -157,7 +157,7 @@ cmd_fn_rename(struct buffer *srv_out, unused int arg)
{
struct hdr hdr;
- hdr.code = MSG_RENAME;
+ hdr.type = MSG_RENAME;
hdr.size = 0;
buffer_write(srv_out, &hdr, sizeof hdr);