diff src/protocols/icq/gaim_icq.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 0ed37c803503
children fefad67de2c7
line wrap: on
line diff
--- a/src/protocols/icq/gaim_icq.c	Tue Apr 15 03:45:31 2003 +0000
+++ b/src/protocols/icq/gaim_icq.c	Tue Apr 15 04:18:00 2003 +0000
@@ -361,7 +361,7 @@
 	g_free(id);
 }
 
-static int icq_send_msg(struct gaim_connection *gc, char *who, char *msg, int len, int flags) {
+static int icq_send_msg(struct gaim_connection *gc, const char *who, const char *msg, int len, int flags) {
 	if (!(flags & IM_FLAG_AWAY) && (strlen(msg) > 0)) {
 		struct icq_data *id = (struct icq_data *)gc->proto_data;
 		long w = atol(who);
@@ -457,7 +457,7 @@
 	return icon_online_xpm;
 	}*/
 
-static void icq_get_info(struct gaim_connection *gc, char *who) {
+static void icq_get_info(struct gaim_connection *gc, const char *who) {
 	struct icq_data *id = (struct icq_data *)gc->proto_data;
 	icq_SendInfoReq(id->link, atol(who));
 }