- Timestamp:
- Aug 15, 2009, 7:08:18 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 1077891a
- Parents:
- fa4562c
- git-author:
- Anders Kaseorg <andersk@mit.edu> (08/04/09 02:37:51)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:18)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
aim.c
rfa4562c re19eb97 26 26 }; 27 27 28 static c har *msgerrreasons[] = {28 static const char *msgerrreasons[] = { 29 29 "Invalid error", 30 30 "Invalid SNAC", … … 136 136 137 137 138 int owl_aim_login(c har *screenname,char *password)138 int owl_aim_login(const char *screenname, const char *password) 139 139 { 140 140 struct owlfaim_priv *priv; … … 209 209 210 210 /* stuff to run once login has been successful */ 211 void owl_aim_successful_login(c har *screenname)211 void owl_aim_successful_login(const char *screenname) 212 212 { 213 213 char *buff; … … 248 248 } 249 249 250 void owl_aim_login_error(c har *message)250 void owl_aim_login_error(const char *message) 251 251 { 252 252 if (message) { … … 261 261 } 262 262 263 int owl_aim_send_im(c har *to,char *msg)263 int owl_aim_send_im(const char *to, const char *msg) 264 264 { 265 265 int ret; … … 271 271 } 272 272 273 int owl_aim_send_awaymsg(c har *to,char *msg)273 int owl_aim_send_awaymsg(const char *to, const char *msg) 274 274 { 275 275 int ret; … … 281 281 } 282 282 283 void owl_aim_addbuddy(c har *name)283 void owl_aim_addbuddy(const char *name) 284 284 { 285 285 … … 295 295 } 296 296 297 void owl_aim_delbuddy(c har *name)297 void owl_aim_delbuddy(const char *name) 298 298 { 299 299 aim_ssi_delbuddy(owl_global_get_aimsess(&g), name, "Buddies"); … … 301 301 } 302 302 303 void owl_aim_search(c har *email)303 void owl_aim_search(const char *email) 304 304 { 305 305 int ret; … … 314 314 315 315 316 int owl_aim_set_awaymsg(c har *msg)316 int owl_aim_set_awaymsg(const char *msg) 317 317 { 318 318 int len; … … 341 341 } 342 342 343 void owl_aim_chat_join(c har *name, int exchange)343 void owl_aim_chat_join(const char *name, int exchange) 344 344 { 345 345 int ret; … … 347 347 /* 348 348 OscarData *od = g->proto_data; 349 c har *name, *exchange;349 const char *name, *exchange; 350 350 */ 351 351 … … 392 392 } 393 393 394 void owl_aim_chat_leave(c har *chatroom)395 { 396 } 397 398 int owl_aim_chat_sendmsg(c har *chatroom,char *msg)394 void owl_aim_chat_leave(const char *chatroom) 395 { 396 } 397 398 int owl_aim_chat_sendmsg(const char *chatroom, const char *msg) 399 399 { 400 400 return(0); … … 402 402 403 403 /* caller must free the return */ 404 char *owl_aim_normalize_screenname(c har *in)404 char *owl_aim_normalize_screenname(const char *in) 405 405 { 406 406 char *out; … … 482 482 struct client_info_s info = CLIENTINFO_AIM_KNOWNGOOD; 483 483 484 c har *key;485 va_list ap; 486 487 va_start(ap, fr); 488 key = va_arg(ap, c har *);484 const char *key; 485 va_list ap; 486 487 va_start(ap, fr); 488 key = va_arg(ap, const char *); 489 489 va_end(ap); 490 490 … … 706 706 va_list ap; 707 707 fu16_t code; 708 c har *msg;708 const char *msg; 709 709 710 710 va_start(ap, fr); 711 711 code = va_arg(ap, int); 712 msg = va_arg(ap, c har *);712 msg = va_arg(ap, const char *); 713 713 va_end(ap); 714 714 … … 740 740 fu16_t change = 0, perms, type; 741 741 int length, str; 742 c har *val;742 const char *val; 743 743 va_list ap; 744 744 … … 748 748 type = (fu16_t)va_arg(ap, unsigned int); 749 749 length = va_arg(ap, int); 750 val = va_arg(ap, c har *);750 val = va_arg(ap, const char *); 751 751 str = va_arg(ap, int); 752 752 va_end(ap); … … 900 900 static int faimtest_parse_motd(aim_session_t *sess, aim_frame_t *fr, ...) 901 901 { 902 c har *msg;902 const char *msg; 903 903 fu16_t id; 904 904 va_list ap; 905 905 static int codeslen = 5; 906 static c har *codes[] = {906 static const char *codes[] = { 907 907 "Unknown", 908 908 "Mandatory upgrade", … … 914 914 va_start(ap, fr); 915 915 id = va_arg(ap, int); 916 msg = va_arg(ap, c har *);916 msg = va_arg(ap, const char *); 917 917 va_end(ap); 918 918 … … 1072 1072 va_list ap; 1073 1073 fu32_t offset, len; 1074 c har *modname;1074 const char *modname; 1075 1075 unsigned char *buf; 1076 1076 int buflen; … … 1079 1079 offset = va_arg(ap, fu32_t); 1080 1080 len = va_arg(ap, fu32_t); 1081 modname = va_arg(ap, c har *);1081 modname = va_arg(ap, const char *); 1082 1082 va_end(ap); 1083 1083 … … 1112 1112 { 1113 1113 aim_userinfo_t *userinfo; 1114 c har *prof_encoding = NULL;1115 c har *prof = NULL;1114 const char *prof_encoding = NULL; 1115 const char *prof = NULL; 1116 1116 fu16_t inforeq = 0; 1117 1117 owl_buddy *b; … … 1120 1120 userinfo = va_arg(ap, aim_userinfo_t *); 1121 1121 inforeq = (fu16_t)va_arg(ap, unsigned int); 1122 prof_encoding = va_arg(ap, c har *);1123 prof = va_arg(ap, c har *);1122 prof_encoding = va_arg(ap, const char *); 1123 prof = va_arg(ap, const char *); 1124 1124 va_end(ap); 1125 1125 … … 1497 1497 { 1498 1498 va_list ap; 1499 c har *destsn;1499 const char *destsn; 1500 1500 fu16_t reason; 1501 1501 1502 1502 va_start(ap, fr); 1503 1503 reason = (fu16_t)va_arg(ap, unsigned int); 1504 destsn = va_arg(ap, c har *);1504 destsn = va_arg(ap, const char *); 1505 1505 va_end(ap); 1506 1506 … … 1518 1518 { 1519 1519 va_list ap; 1520 c har *destsn;1520 const char *destsn; 1521 1521 fu16_t reason; 1522 1522 1523 1523 va_start(ap, fr); 1524 1524 reason = (fu16_t)va_arg(ap, unsigned int); 1525 destsn = va_arg(ap, c har *);1525 destsn = va_arg(ap, const char *); 1526 1526 va_end(ap); 1527 1527 … … 1534 1534 static int faimtest_parse_misses(aim_session_t *sess, aim_frame_t *fr, ...) 1535 1535 { 1536 static c har *missedreasons[] = {1536 static const char *missedreasons[] = { 1537 1537 "Invalid (0)", 1538 1538 "Message too large", … … 1566 1566 va_list ap; 1567 1567 fu16_t type; 1568 c har *sn = NULL;1568 const char *sn = NULL; 1569 1569 1570 1570 va_start(ap, fr); 1571 1571 type = (fu16_t)va_arg(ap, unsigned int); 1572 sn = va_arg(ap, c har *);1572 sn = va_arg(ap, const char *); 1573 1573 va_end(ap); 1574 1574 … … 1580 1580 static int faimtest_parse_ratechange(aim_session_t *sess, aim_frame_t *fr, ...) 1581 1581 { 1582 static c har *codes[5] = {1582 static const char *codes[5] = { 1583 1583 "invalid", 1584 1584 "change", … … 1656 1656 { 1657 1657 va_list ap; 1658 c har *address, *SNs;1658 const char *address, *SNs; 1659 1659 int num, i; 1660 1660 owl_list list; 1661 1661 1662 1662 va_start(ap, fr); 1663 address = va_arg(ap, c har *);1663 address = va_arg(ap, const char *); 1664 1664 num = va_arg(ap, int); 1665 SNs = va_arg(ap, c har *);1665 SNs = va_arg(ap, const char *); 1666 1666 va_end(ap); 1667 1667 … … 1681 1681 { 1682 1682 va_list ap; 1683 c har *address;1684 1685 va_start(ap, fr); 1686 address = va_arg(ap, c har *);1683 const char *address; 1684 1685 va_start(ap, fr); 1686 address = va_arg(ap, const char *); 1687 1687 va_end(ap); 1688 1688 … … 1696 1696 { 1697 1697 va_list ap; 1698 c har *msg, *url;1698 const char *msg, *url; 1699 1699 fu16_t width, height, delay; 1700 1700 1701 1701 va_start(ap, fr); 1702 msg = va_arg(ap, c har *);1703 url = va_arg(ap, c har *);1702 msg = va_arg(ap, const char *); 1703 url = va_arg(ap, const char *); 1704 1704 width = va_arg(ap, unsigned int); 1705 1705 height = va_arg(ap, unsigned int); … … 1722 1722 va_list ap; 1723 1723 aim_conn_t *bosconn; 1724 c har *bosip;1724 const char *bosip; 1725 1725 fu8_t *cookie; 1726 1726 1727 1727 va_start(ap, fr); 1728 bosip = va_arg(ap, c har *);1728 bosip = va_arg(ap, const char *); 1729 1729 cookie = va_arg(ap, fu8_t *); 1730 1730 va_end(ap); … … 1873 1873 aim_userinfo_t *userinfo; 1874 1874 struct aim_chat_roominfo *roominfo; 1875 c har *roomname;1875 const char *roomname; 1876 1876 int usercount; 1877 c har *roomdesc;1877 const char *roomdesc; 1878 1878 fu16_t flags, unknown_d2, unknown_d5, maxmsglen, maxvisiblemsglen; 1879 1879 fu32_t creationtime; … … 1885 1885 va_start(ap, fr); 1886 1886 roominfo = va_arg(ap, struct aim_chat_roominfo *); 1887 roomname = va_arg(ap, c har *);1887 roomname = va_arg(ap, const char *); 1888 1888 usercount = va_arg(ap, int); 1889 1889 userinfo = va_arg(ap, aim_userinfo_t *); 1890 roomdesc = va_arg(ap, c har *);1890 roomdesc = va_arg(ap, const char *); 1891 1891 flags = (fu16_t)va_arg(ap, unsigned int); 1892 1892 creationtime = va_arg(ap, fu32_t); … … 1928 1928 va_list ap; 1929 1929 aim_userinfo_t *userinfo; 1930 c har *msg;1930 const char *msg; 1931 1931 char tmpbuf[1152]; 1932 1932 1933 1933 va_start(ap, fr); 1934 1934 userinfo = va_arg(ap, aim_userinfo_t *); 1935 msg = va_arg(ap, c har *);1935 msg = va_arg(ap, const char *); 1936 1936 va_end(ap); 1937 1937
Note: See TracChangeset
for help on using the changeset viewer.