diff options
author | Adam Jackson <ajax@nwnk.net> | 2006-03-28 01:21:00 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2006-03-28 01:21:00 +0000 |
commit | 7deaaa797cf8e7ca71e9b34fa6f413d1ed2b3dab (patch) | |
tree | 68207e778570383e7f4ace7d1ff8cea27bb67ce1 /os/xdmauth.c | |
parent | 7342dbe4b2108827eaf30993ceeecbd828da2290 (diff) |
Big old pile of warning fixes.
Diffstat (limited to 'os/xdmauth.c')
-rw-r--r-- | os/xdmauth.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/os/xdmauth.c b/os/xdmauth.c index e02ca349c..f88d25a27 100644 --- a/os/xdmauth.c +++ b/os/xdmauth.c @@ -70,9 +70,7 @@ XdmAuthenticationValidator (ARRAY8Ptr privateData, ARRAY8Ptr incomingData, XdmcpUnwrap (incomingData->data, &privateKey, incomingData->data,incomingData->length); - switch (packet_type) - { - case ACCEPT: + if (packet_type == ACCEPT) { if (incomingData->length != 8) return FALSE; incoming = (XdmAuthKeyPtr) incomingData->data; @@ -88,9 +86,7 @@ XdmAuthenticationGenerator (ARRAY8Ptr privateData, ARRAY8Ptr outgoingData, { outgoingData->length = 0; outgoingData->data = 0; - switch (packet_type) - { - case REQUEST: + if (packet_type == REQUEST) { if (XdmcpAllocARRAY8 (outgoingData, 8)) XdmcpWrap (&rho, &privateKey, outgoingData->data, 8); } |