Mercurial > pidgin
comparison src/protocols/toc/toc.c @ 5954:fccc33d4b8fa
[gaim-migrate @ 6398]
I made serv_set_info or whatever it's called take a const char *
I don't really remember why
I also made some other small changes
There should be no functionality change
I'm still struggling to get available messages working. They haunt my
dreams. Like the gray gorilla, or the Silhouette of the past, fading
into the dim light of the moon.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Wed, 25 Jun 2003 04:20:30 +0000 |
| parents | 7d385de2f9cd |
| children | 0a2a32b1917c |
comparison
equal
deleted
inserted
replaced
| 5953:bc71bd31c223 | 5954:fccc33d4b8fa |
|---|---|
| 1082 } else | 1082 } else |
| 1083 g_snprintf(buf, MSG_LEN, "toc_set_away \"\""); | 1083 g_snprintf(buf, MSG_LEN, "toc_set_away \"\""); |
| 1084 sflap_send(g, buf, -1, TYPE_DATA); | 1084 sflap_send(g, buf, -1, TYPE_DATA); |
| 1085 } | 1085 } |
| 1086 | 1086 |
| 1087 static void toc_set_info(GaimConnection *g, char *info) | 1087 static void toc_set_info(GaimConnection *g, const char *info) |
| 1088 { | 1088 { |
| 1089 char buf[BUF_LEN * 2], buf2[BUF_LEN * 2]; | 1089 char buf[BUF_LEN * 2], buf2[BUF_LEN * 2]; |
| 1090 g_snprintf(buf2, sizeof buf2, "%s", info); | 1090 g_snprintf(buf2, sizeof buf2, "%s", info); |
| 1091 escape_text(buf2); | 1091 escape_text(buf2); |
| 1092 g_snprintf(buf, sizeof(buf), "toc_set_info \"%s\n\"", buf2); | 1092 g_snprintf(buf, sizeof(buf), "toc_set_info \"%s\n\"", buf2); |
