Mercurial > pidgin
comparison src/protocols/oscar/oscar.c @ 5306:ce07077982c4
[gaim-migrate @ 5678]
Get rid of some silly compile warnings. Whoops.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 06 May 2003 00:11:27 +0000 |
parents | 6dfcd7dbecde |
children | 5d0df915ca09 |
comparison
equal
deleted
inserted
replaced
5305:d2732160850b | 5306:ce07077982c4 |
---|---|
286 static int oscar_sendfile_ack (aim_session_t *, aim_frame_t *, ...); | 286 static int oscar_sendfile_ack (aim_session_t *, aim_frame_t *, ...); |
287 static int oscar_sendfile_done (aim_session_t *, aim_frame_t *, ...); | 287 static int oscar_sendfile_done (aim_session_t *, aim_frame_t *, ...); |
288 | 288 |
289 /* for icons */ | 289 /* for icons */ |
290 static gboolean gaim_icon_timerfunc(gpointer data); | 290 static gboolean gaim_icon_timerfunc(gpointer data); |
291 | |
292 /* prpl actions - remove this at some point */ | |
293 static void oscar_set_info(struct gaim_connection *gc, char *text); | |
291 | 294 |
292 int ill_just_write_my_own_damn_round_function(double val) { | 295 int ill_just_write_my_own_damn_round_function(double val) { |
293 if ((val - (int)val) > 0.5) | 296 if ((val - (int)val) > 0.5) |
294 return val+1; | 297 return val+1; |
295 else | 298 else |
3732 return 1; | 3735 return 1; |
3733 } | 3736 } |
3734 | 3737 |
3735 static int gaim_parse_locaterights(aim_session_t *sess, aim_frame_t *fr, ...) | 3738 static int gaim_parse_locaterights(aim_session_t *sess, aim_frame_t *fr, ...) |
3736 { | 3739 { |
3740 struct gaim_connection *gc = sess->aux_data; | |
3741 struct oscar_data *od = (struct oscar_data *)gc->proto_data; | |
3737 va_list ap; | 3742 va_list ap; |
3738 fu16_t maxsiglen; | 3743 fu16_t maxsiglen; |
3739 struct gaim_connection *gc = sess->aux_data; | |
3740 struct oscar_data *od = (struct oscar_data *)gc->proto_data; | |
3741 char *unicode; | |
3742 int unicode_len; | |
3743 fu32_t flags; | |
3744 | 3744 |
3745 va_start(ap, fr); | 3745 va_start(ap, fr); |
3746 maxsiglen = (fu16_t) va_arg(ap, int); | 3746 maxsiglen = (fu16_t) va_arg(ap, int); |
3747 va_end(ap); | 3747 va_end(ap); |
3748 | 3748 |
4336 /* XXX - some of these things are wrong, but i'm lazy */ | 4336 /* XXX - some of these things are wrong, but i'm lazy */ |
4337 struct oscar_data *od = (struct oscar_data *)g->proto_data; | 4337 struct oscar_data *od = (struct oscar_data *)g->proto_data; |
4338 aim_setdirectoryinfo(od->sess, od->conn, first, middle, last, | 4338 aim_setdirectoryinfo(od->sess, od->conn, first, middle, last, |
4339 maiden, NULL, NULL, city, state, NULL, 0, web); | 4339 maiden, NULL, NULL, city, state, NULL, 0, web); |
4340 } | 4340 } |
4341 | |
4342 | 4341 |
4343 static void oscar_set_idle(struct gaim_connection *gc, int time) { | 4342 static void oscar_set_idle(struct gaim_connection *gc, int time) { |
4344 struct oscar_data *od = (struct oscar_data *)gc->proto_data; | 4343 struct oscar_data *od = (struct oscar_data *)gc->proto_data; |
4345 aim_bos_setidle(od->sess, od->conn, time); | 4344 aim_bos_setidle(od->sess, od->conn, time); |
4346 } | 4345 } |