Changeset 4d86e06 for aim.c


Ignore:
Timestamp:
Jul 23, 2009, 12:53:57 AM (12 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
ba6c8bd
Parents:
029a8b5
Message:
Get rid of a whole bunch of useless casts.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • aim.c

    r029a8b5 r4d86e06  
    346346  aim_conn_t *cur;
    347347  /*
    348   OscarData *od = (OscarData *)g->proto_data;
     348  OscarData *od = g->proto_data;
    349349  char *name, *exchange;
    350350  */
     
    429429
    430430  aimsess=owl_global_get_aimsess(&g);
    431   priv = (struct owlfaim_priv *)aimsess->aux_data;
     431  priv = aimsess->aux_data;
    432432
    433433  /* do a select without blocking */
     
    479479static int faimtest_parse_login(aim_session_t *sess, aim_frame_t *fr, ...)
    480480{
    481   struct owlfaim_priv *priv = (struct owlfaim_priv *)sess->aux_data;
     481  struct owlfaim_priv *priv = sess->aux_data;
    482482  struct client_info_s info = CLIENTINFO_AIM_KNOWNGOOD;
    483483   
     
    703703static int faimtest_parse_connerr(aim_session_t *sess, aim_frame_t *fr, ...)
    704704{
    705   struct owlfaim_priv *priv = (struct owlfaim_priv *)sess->aux_data;
     705  struct owlfaim_priv *priv = sess->aux_data;
    706706  va_list ap;
    707707  fu16_t code;
     
    879879static int faimtest_reportinterval(aim_session_t *sess, aim_frame_t *fr, ...)
    880880{
    881   struct owlfaim_priv *priv = (struct owlfaim_priv *)sess->aux_data;
     881  struct owlfaim_priv *priv = sess->aux_data;
    882882  va_list ap;
    883883  fu16_t interval;
     
    944944static int getaimdata(aim_session_t *sess, unsigned char **bufret, int *buflenret, unsigned long offset, unsigned long len, const char *modname)
    945945{
    946   struct owlfaim_priv *priv = (struct owlfaim_priv *)sess->aux_data;
     946  struct owlfaim_priv *priv = sess->aux_data;
    947947  FILE *f;
    948948  static const char defaultmod[] = "aim.exe";
     
    10691069static int faimtest_memrequest(aim_session_t *sess, aim_frame_t *fr, ...)
    10701070{
    1071   struct owlfaim_priv *priv = (struct owlfaim_priv *)sess->aux_data;
     1071  struct owlfaim_priv *priv = sess->aux_data;
    10721072  va_list ap;
    10731073  fu32_t offset, len;
     
    11681168static int faimtest_parse_incoming_im_chan1(aim_session_t *sess, aim_conn_t *conn, aim_userinfo_t *userinfo, struct aim_incomingim_ch1_args *args)
    11691169{
    1170   struct owlfaim_priv *priv = (struct owlfaim_priv *)sess->aux_data;
     1170  struct owlfaim_priv *priv = sess->aux_data;
    11711171  owl_message *m;
    11721172  char *stripmsg, *nz_screenname, *wrapmsg;
Note: See TracChangeset for help on using the changeset viewer.