comparison libpurple/protocols/zephyr/ZSubs.c @ 31086:a8cc50c2279f

Remove trailing whitespace
author Richard Laager <rlaager@wiktel.com>
date Tue, 04 Jan 2011 06:55:30 +0000
parents 5fe8042783c1
children
comparison
equal deleted inserted replaced
31085:44f53d3fc54f 31086:a8cc50c2279f
4 * 4 *
5 * Created by: Robert French 5 * Created by: Robert French
6 * 6 *
7 * Copyright (c) 1987,1988 by the Massachusetts Institute of Technology. 7 * Copyright (c) 1987,1988 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_Subscriptions __P((register ZSubscription_t *sublist, 14 static Code_t Z_Subscriptions __P((register ZSubscription_t *sublist,
74 adjusted below */ 74 adjusted below */
75 int size, start, numok; 75 int size, start, numok;
76 76
77 /* nitems = 0 means cancel all subscriptions; still need to allocate a */ 77 /* nitems = 0 means cancel all subscriptions; still need to allocate a */
78 /* array for one item so we can cancel, however. */ 78 /* array for one item so we can cancel, however. */
79 79
80 list = (char **)malloc((unsigned)((nitems==0)?1:nitems)*3*sizeof(char *)); 80 list = (char **)malloc((unsigned)((nitems==0)?1:nitems)*3*sizeof(char *));
81 if (!list) 81 if (!list)
82 return (ENOMEM); 82 return (ENOMEM);
83 83
84 (void) memset((char *)&notice, 0, sizeof(notice)); 84 (void) memset((char *)&notice, 0, sizeof(notice));
171 ZNotice_t retnotice; 171 ZNotice_t retnotice;
172 172
173 retval = ZSendList(notice, lyst, num*3, ZAUTH); 173 retval = ZSendList(notice, lyst, num*3, ZAUTH);
174 if (retval != ZERR_NONE && !authit) 174 if (retval != ZERR_NONE && !authit)
175 retval = ZSendList(notice, lyst, num*3, ZNOAUTH); 175 retval = ZSendList(notice, lyst, num*3, ZNOAUTH);
176 176
177 if (retval != ZERR_NONE) 177 if (retval != ZERR_NONE)
178 return (retval); 178 return (retval);
179 if ((retval = ZIfNotice(&retnotice, (struct sockaddr_in *)0, 179 if ((retval = ZIfNotice(&retnotice, (struct sockaddr_in *)0,
180 ZCompareUIDPred, (char *)&notice->z_uid)) != 180 ZCompareUIDPred, (char *)&notice->z_uid)) !=
181 ZERR_NONE) 181 ZERR_NONE)
182 return (retval); 182 return (retval);
183 if (retnotice.z_kind == SERVNAK) { 183 if (retnotice.z_kind == SERVNAK) {
184 ZFreeNotice(&retnotice); 184 ZFreeNotice(&retnotice);