Mercurial > pidgin
diff src/protocols/yahoo/yahoo.c @ 5136:381da05cb5ed
[gaim-migrate @ 5500]
this started out as simply adding an option to right-click on a jabber buddy
and re-request authorization. Then I ended up chasing the disgusting mess
of const vs non-const parameters all over gaim.
The end result is that you can now right-click on jabber buddies and
re-request auth like you can for ICQ. Also, a lot more things are const
that should be, I fixed a bug or two, and I cleaned up one of my least
favorite functions in gaim (linkify_text). It is now decidedly less evil.
committer: Tailor Script <tailor@pidgin.im>
| author | Nathan Walp <nwalp@pidgin.im> |
|---|---|
| date | Tue, 15 Apr 2003 04:18:00 +0000 |
| parents | b37d7d09ec83 |
| children | fefad67de2c7 |
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c Tue Apr 15 03:45:31 2003 +0000 +++ b/src/protocols/yahoo/yahoo.c Tue Apr 15 04:18:00 2003 +0000 @@ -1067,7 +1067,7 @@ } } -static void yahoo_game(struct gaim_connection *gc, char *name) { +static void yahoo_game(struct gaim_connection *gc, const char *name) { struct yahoo_data *yd = (struct yahoo_data *)gc->proto_data; char *game = g_hash_table_lookup(yd->games, name); char *t; @@ -1123,7 +1123,7 @@ return NULL; } -static GList *yahoo_buddy_menu(struct gaim_connection *gc, char *who) +static GList *yahoo_buddy_menu(struct gaim_connection *gc, const char *who) { GList *m = NULL; struct proto_buddy_menu *pbm; @@ -1190,7 +1190,7 @@ return m; } -static int yahoo_send_im(struct gaim_connection *gc, char *who, char *what, int len, int flags) +static int yahoo_send_im(struct gaim_connection *gc, const char *who, const char *what, int len, int flags) { struct yahoo_data *yd = gc->proto_data; struct yahoo_packet *pkt = yahoo_packet_new(YAHOO_SERVICE_MESSAGE, YAHOO_STATUS_OFFLINE, 0);
