libpurple/protocols/zephyr/ZLocations.c

branch
string-comparison-r2
changeset 38258
9a6551eba09c
parent 31294
73607ab89c6f
child 38259
c593fc9f5438
equal deleted inserted replaced
38257:1a294a6d2a57 38258:9a6551eba09c
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 #include "util.h"
13 14
14 #ifndef WIN32 15 #ifndef WIN32
15 #include <pwd.h> 16 #include <pwd.h>
16 #endif 17 #endif
17 18
125 if (retnotice.z_kind == SERVNAK) { 126 if (retnotice.z_kind == SERVNAK) {
126 if (!retnotice.z_message_len) { 127 if (!retnotice.z_message_len) {
127 ZFreeNotice(&retnotice); 128 ZFreeNotice(&retnotice);
128 return (ZERR_SERVNAK); 129 return (ZERR_SERVNAK);
129 } 130 }
130 if (!strcmp(retnotice.z_message, ZSRVACK_NOTSENT)) { 131 if (purple_strequal(retnotice.z_message, ZSRVACK_NOTSENT)) {
131 ZFreeNotice(&retnotice); 132 ZFreeNotice(&retnotice);
132 return (ZERR_AUTHFAIL); 133 return (ZERR_AUTHFAIL);
133 } 134 }
134 if (!strcmp(retnotice.z_message, ZSRVACK_FAIL)) { 135 if (purple_strequal(retnotice.z_message, ZSRVACK_FAIL)) {
135 ZFreeNotice(&retnotice); 136 ZFreeNotice(&retnotice);
136 return (ZERR_LOGINFAIL); 137 return (ZERR_LOGINFAIL);
137 } 138 }
138 ZFreeNotice(&retnotice); 139 ZFreeNotice(&retnotice);
139 return (ZERR_SERVNAK); 140 return (ZERR_SERVNAK);

mercurial