comparison libpurple/protocols/zephyr/ZRetSubs.c @ 31534:a8cc50c2279f

Remove trailing whitespace
author Richard Laager <rlaager@wiktel.com>
date Tue, 04 Jan 2011 06:55:30 +0000
parents 5fe8042783c1
children 5d442ea707b5
comparison
equal deleted inserted replaced
31533:44f53d3fc54f 31534:a8cc50c2279f
4 * 4 *
5 * Created by: Robert French 5 * Created by: Robert French
6 * 6 *
7 * Copyright (c) 1987,1988,1991 by the Massachusetts Institute of Technology. 7 * Copyright (c) 1987,1988,1991 by the Massachusetts Institute of Technology.
8 * For copying and distribution information, see the file 8 * For copying and distribution information, see the file
9 * "mit-copyright.h". 9 * "mit-copyright.h".
10 */ 10 */
11 11
12 #include "internal.h" 12 #include "internal.h"
13 13
14 static Code_t Z_RetSubs(ZNotice_t *notice, int *nsubs, Z_AuthProc auth_routine); 14 static Code_t Z_RetSubs(ZNotice_t *notice, int *nsubs, Z_AuthProc auth_routine);
23 #endif 23 #endif
24 { 24 {
25 int retval; 25 int retval;
26 ZNotice_t notice; 26 ZNotice_t notice;
27 char asciiport[50]; 27 char asciiport[50];
28 28
29 if (!port) /* use default port */ 29 if (!port) /* use default port */
30 port = __Zephyr_port; 30 port = __Zephyr_port;
31 31
32 retval = ZMakeAscii16(asciiport, sizeof(asciiport), ntohs(port)); 32 retval = ZMakeAscii16(asciiport, sizeof(asciiport), ntohs(port));
33 if (retval != ZERR_NONE) 33 if (retval != ZERR_NONE)
100 return retval; 100 return retval;
101 101
102 if (retnotice.z_kind == SERVNAK) { 102 if (retnotice.z_kind == SERVNAK) {
103 ZFreeNotice(&retnotice); 103 ZFreeNotice(&retnotice);
104 return (ZERR_SERVNAK); 104 return (ZERR_SERVNAK);
105 } 105 }
106 /* non-matching protocol version numbers means the 106 /* non-matching protocol version numbers means the
107 server is probably an older version--must punt */ 107 server is probably an older version--must punt */
108 if (strcmp(notice->z_version,retnotice.z_version)) { 108 if (strcmp(notice->z_version,retnotice.z_version)) {
109 ZFreeNotice(&retnotice); 109 ZFreeNotice(&retnotice);
110 return(ZERR_VERS); 110 return(ZERR_VERS);
112 if (retnotice.z_kind == SERVACK && 112 if (retnotice.z_kind == SERVACK &&
113 !strcmp(retnotice.z_opcode,notice->z_opcode)) { 113 !strcmp(retnotice.z_opcode,notice->z_opcode)) {
114 ZFreeNotice(&retnotice); 114 ZFreeNotice(&retnotice);
115 gimmeack = 1; 115 gimmeack = 1;
116 continue; 116 continue;
117 } 117 }
118 118
119 if (retnotice.z_kind != ACKED) { 119 if (retnotice.z_kind != ACKED) {
120 ZFreeNotice(&retnotice); 120 ZFreeNotice(&retnotice);
121 return (ZERR_INTERNAL); 121 return (ZERR_INTERNAL);
122 } 122 }