pidgin: b01c2771: A gboolean doesn't need to be '1' to be ...
datallah at pidgin.im
datallah at pidgin.im
Mon Nov 1 13:45:27 EDT 2010
----------------------------------------------------------------------
Revision: b01c2771dfe0c2c521afb1699a3a9c509c12567d
Parent: e05d56914340fd4889da3db5dc0bcdc3ed94c458
Author: datallah at pidgin.im
Date: 11/01/10 13:42:47
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/b01c2771dfe0c2c521afb1699a3a9c509c12567d
Changelog:
A gboolean doesn't need to be '1' to be TRUE. This is safer.
Changes against parent e05d56914340fd4889da3db5dc0bcdc3ed94c458
patched libpurple/protocols/oscar/oscar.c
-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/oscar.c 52e33732eef12ac4c25c6f3e27804e3e07a1013c
+++ libpurple/protocols/oscar/oscar.c 3c0890e287513bf1ce54031b4f1459e994b08d66
@@ -621,7 +621,7 @@ static const gchar *get_login_server(gbo
static const gchar *get_login_server(gboolean is_icq, gboolean use_ssl)
{
- return login_servers[is_icq*2 + use_ssl];
+ return login_servers[(is_icq ? 2 : 0) + (use_ssl ? 1 : 0)];
}
void
More information about the Commits
mailing list