Mercurial > pidgin
comparison src/protocols/napster/napster.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 |
comparison
equal
deleted
inserted
replaced
5135:102135caa225 | 5136:381da05cb5ed |
---|---|
85 write(ndata->fd, &size, 2); | 85 write(ndata->fd, &size, 2); |
86 write(ndata->fd, &command, 2); | 86 write(ndata->fd, &command, 2); |
87 write(ndata->fd, message, size); | 87 write(ndata->fd, message, size); |
88 } | 88 } |
89 | 89 |
90 static int nap_send_im(struct gaim_connection *gc, char *who, char *message, int len, int flags) | 90 static int nap_send_im(struct gaim_connection *gc, const char *who, const char *message, int len, int flags) |
91 { | 91 { |
92 gchar buf[NAP_BUF_LEN]; | 92 gchar buf[NAP_BUF_LEN]; |
93 | 93 |
94 g_snprintf(buf, NAP_BUF_LEN, "%s %s", who, message); | 94 g_snprintf(buf, NAP_BUF_LEN, "%s %s", who, message); |
95 nap_write_packet(gc, 0xCD, buf); | 95 nap_write_packet(gc, 0xCD, buf); |