/pidgin/main: 9e56dcafff40: Remove needless allocation casts
Michael McConville <[email protected]>
| Newsgroups | gmane.comp.gnome.gaim.cvs |
|---|---|
| Message-ID | <[email protected]> |
Changeset: 9e56dcafff40a9cefae753099f29dc83e80e9ba1 Author: Michael McConville <[email protected]> Date: 2015-12-21 15:15 -0500 Branch: default URL: https://hg.pidgin.im/pidgin/main/rev/9e56dcafff40 Description: Remove needless allocation casts diffstat: libpurple/protocols/oscar/family_icq.c | 8 ++++---- libpurple/server.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diffs (51 lines): diff --git a/libpurple/protocols/oscar/family_icq.c b/libpurple/protocols/oscar/family_icq.c --- a/libpurple/protocols/oscar/family_icq.c +++ b/libpurple/protocols/oscar/family_icq.c @@ -254,7 +254,7 @@ int aim_icq_getallinfo(OscarData *od, co byte_stream_destroy(&bs); /* Keep track of this request and the ICQ number and request ID */ - info = (struct aim_icq_info *)g_new0(struct aim_icq_info, 1); + info = g_new0(struct aim_icq_info, 1); info->reqid = snacid; info->uin = atoi(uin); od->icq_info = g_slist_prepend(od->icq_info, info); @@ -301,7 +301,7 @@ int aim_icq_getalias(OscarData *od, cons byte_stream_destroy(&bs); /* Keep track of this request and the ICQ number and request ID */ - info = (struct aim_icq_info *)g_new0(struct aim_icq_info, 1); + info = g_new0(struct aim_icq_info, 1); info->reqid = snacid; info->uin = atoi(uin); info->for_auth_request = for_auth_request; @@ -472,7 +472,7 @@ icqresponse(OscarData *od, aim_modsnac_t /* find other data from the same request */ info_ptr = g_slist_find_custom(od->icq_info, &reqid, compare_icq_infos); if (!info_ptr) { - struct aim_icq_info *new_info = (struct aim_icq_info *)g_new0(struct aim_icq_info, 1); + struct aim_icq_info *new_info = g_new0(struct aim_icq_info, 1); new_info->reqid = reqid; info_ptr = od->icq_info = g_slist_prepend(od->icq_info, new_info); } @@ -541,7 +541,7 @@ icqresponse(OscarData *od, aim_modsnac_t case 0x00eb: { /* email address(es) */ int i; info->numaddresses = byte_stream_getle16(&qbs); - info->email2 = (char **)g_new0(char *, info->numaddresses); + info->email2 = g_new0(char *, info->numaddresses); for (i = 0; i < info->numaddresses; i++) { info->email2[i] = byte_stream_getstr(&qbs, byte_stream_getle16(&qbs)); if (i+1 != info->numaddresses) diff --git a/libpurple/server.c b/libpurple/server.c --- a/libpurple/server.c +++ b/libpurple/server.c @@ -103,7 +103,7 @@ get_last_auto_response(PurpleConnection tmp = tmp->next; } - lar = (struct last_auto_response *)g_new0(struct last_auto_response, 1); + lar = g_new0(struct last_auto_response, 1); g_snprintf(lar->name, sizeof(lar->name), "%s", name); lar->gc = gc; lar->sent = 0; _______________________________________________ Commits mailing list [email protected] https://pidgin.im/cgi-bin/mailman/listinfo/commits