aboutsummaryrefslogtreecommitdiff
path: root/src/libventi/srvhello.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libventi/srvhello.c')
-rw-r--r--src/libventi/srvhello.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libventi/srvhello.c b/src/libventi/srvhello.c
index 0af5a32d..ca34221e 100644
--- a/src/libventi/srvhello.c
+++ b/src/libventi/srvhello.c
@@ -17,9 +17,9 @@ vtsrvhello(VtConn *z)
}
packetfree(p);
- if(tx.type != VtThello){
+ if(tx.msgtype != VtThello){
vtfcallclear(&tx);
- werrstr("bad packet type %d; want Thello %d", tx.type, VtThello);
+ werrstr("bad packet type %d; want Thello %d", tx.msgtype, VtThello);
return -1;
}
if(tx.tag != 0){
@@ -38,7 +38,7 @@ vtsrvhello(VtConn *z)
vtfcallclear(&tx);
memset(&rx, 0, sizeof rx);
- rx.type = VtRhello;
+ rx.msgtype = VtRhello;
rx.tag = tx.tag;
rx.sid = "anonymous";
if((p = vtfcallpack(&rx)) == nil)