comparison src/protocols/gg/libgg.c @ 10344:5976491e07a7

[gaim-migrate @ 11554] Assorted silly compile warning fixes committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 11 Dec 2004 00:06:06 +0000
parents 0e3a84f18467
children 088633feb846
comparison
equal deleted inserted replaced
10343:ee4f477fc8cf 10344:5976491e07a7
1 /* $Id: libgg.c 10742 2004-08-25 03:09:08Z thekingant $ */ 1 /* $Id: libgg.c 11554 2004-12-11 00:06:06Z thekingant $ */
2 2
3 /* 3 /*
4 * (C) Copyright 2001 Wojtek Kaniewski <wojtekka@irc.pl>, 4 * (C) Copyright 2001 Wojtek Kaniewski <wojtekka@irc.pl>,
5 * Robert J. Woźny <speedy@ziew.org> 5 * Robert J. Woźny <speedy@ziew.org>
6 * 6 *
68 68
69 static char rcsid[] 69 static char rcsid[]
70 #ifdef __GNUC__ 70 #ifdef __GNUC__
71 __attribute__ ((unused)) 71 __attribute__ ((unused))
72 #endif 72 #endif
73 = "$Id: libgg.c 10742 2004-08-25 03:09:08Z thekingant $"; 73 = "$Id: libgg.c 11554 2004-12-11 00:06:06Z thekingant $";
74 74
75 #endif 75 #endif
76 76
77 /* 77 /*
78 * fix32() // funkcja wewnętrzna 78 * fix32() // funkcja wewnętrzna
656 * - recipient - numer adresata 656 * - recipient - numer adresata
657 * - message - treść wiadomości 657 * - message - treść wiadomości
658 * 658 *
659 * numer sekwencyjny wiadomości lub -1 w przypadku błędu. 659 * numer sekwencyjny wiadomości lub -1 w przypadku błędu.
660 */ 660 */
661 int gg_send_message(struct gg_session *sess, int msgclass, uin_t recipient, const unsigned char *message) 661 int gg_send_message(struct gg_session *sess, int msgclass, uin_t recipient, const char *message)
662 { 662 {
663 gg_debug(GG_DEBUG_FUNCTION, "** gg_send_message(%p, %d, %u, %p)\n", sess, msgclass, recipient, message); 663 gg_debug(GG_DEBUG_FUNCTION, "** gg_send_message(%p, %d, %u, %p)\n", sess, msgclass, recipient, message);
664 664
665 return gg_send_message_richtext(sess, msgclass, recipient, message, NULL, 0); 665 return gg_send_message_richtext(sess, msgclass, recipient, message, NULL, 0);
666 } 666 }
678 * - format - informacje o formatowaniu 678 * - format - informacje o formatowaniu
679 * - formatlen - długość informacji o formatowaniu 679 * - formatlen - długość informacji o formatowaniu
680 * 680 *
681 * numer sekwencyjny wiadomości lub -1 w przypadku błędu. 681 * numer sekwencyjny wiadomości lub -1 w przypadku błędu.
682 */ 682 */
683 int gg_send_message_richtext(struct gg_session *sess, int msgclass, uin_t recipient, const unsigned char *message, const unsigned char *format, int formatlen) 683 int gg_send_message_richtext(struct gg_session *sess, int msgclass, uin_t recipient, const char *message, const unsigned char *format, int formatlen)
684 { 684 {
685 struct gg_send_msg s; 685 struct gg_send_msg s;
686 686
687 gg_debug(GG_DEBUG_FUNCTION, "** gg_send_message_richtext(%p, %d, %u, %p, %p, %d);\n", sess, msgclass, recipient, message, format, formatlen); 687 gg_debug(GG_DEBUG_FUNCTION, "** gg_send_message_richtext(%p, %d, %u, %p, %p, %d);\n", sess, msgclass, recipient, message, format, formatlen);
688 688