/[ipchat]/ipchat/src/demux.c
ViewVC logotype

Diff of /ipchat/src/demux.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by beatk, Mon Mar 21 20:47:21 2005 UTC revision 1.15 by beatk, Thu Mar 24 08:56:50 2005 UTC
# Line 66  struct fd_list_node { Line 66  struct fd_list_node {
66    
67  /* Node in timer queue. */  /* Node in timer queue. */
68  struct timer_pq_node {  struct timer_pq_node {
69          time_t next_alarm;          prio_t next_alarm;             /* must be the first field for pqueue */
70          unsigned long int time_incr;          unsigned long int time_incr;
71          long int time_shift;          long int time_shift;
72          void (*callback) (void *);          void (*callback) (void *);
# Line 489  timer_pq_add (time_t next_alarm, unsigne Line 489  timer_pq_add (time_t next_alarm, unsigne
489          }          }
490    
491          new_node = (struct timer_pq_node*)malloc (sizeof(struct timer_pq_node));          new_node = (struct timer_pq_node*)malloc (sizeof(struct timer_pq_node));
492          new_node->next_alarm = next_alarm;          new_node->next_alarm = (prio_t)next_alarm;
493          new_node->time_incr = time_incr;          new_node->time_incr = time_incr;
494          new_node->time_shift = time_shift;          new_node->time_shift = time_shift;
495          new_node->callback = callback;          new_node->callback = callback;
496          new_node->data = data;          new_node->data = data;
497    
498          pq_add (next_alarm, new_node, &timer_q);          pq_add (new_node, &timer_q);
499    
500          return new_node;          return new_node;
501  }  }

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26