diff options
| author | Uros Majstorovic <majstor@majstor.org> | 2020-06-06 14:23:40 +0200 | 
|---|---|---|
| committer | Uros Majstorovic <majstor@majstor.org> | 2020-06-06 14:23:40 +0200 | 
| commit | 7c253d76ff15e81a4c45f828176d7d24b99132e3 (patch) | |
| tree | b989cdb50ffd740472ae8ec24bd4ad8e7a39f577 /code/ecp/timer.h | |
| parent | 864680228784322895a07cef388cbdd6e75c3dc0 (diff) | |
ecp_timer_retry_t typedef fixed
Diffstat (limited to 'code/ecp/timer.h')
| -rw-r--r-- | code/ecp/timer.h | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/code/ecp/timer.h b/code/ecp/timer.h index 9c80007..5bccff1 100644 --- a/code/ecp/timer.h +++ b/code/ecp/timer.h @@ -4,7 +4,7 @@  struct ECPTimerItem; -typedef ssize_t ecp_timer_retry_t (struct ECPConnection *, struct ECPTimerItem *); +typedef ssize_t (*ecp_timer_retry_t) (struct ECPConnection *, struct ECPTimerItem *);  typedef struct ECPTimerItem {      struct ECPConnection *conn; @@ -12,7 +12,7 @@ typedef struct ECPTimerItem {      short cnt;      ecp_cts_t abstime;      ecp_cts_t timeout; -    ecp_timer_retry_t *retry; +    ecp_timer_retry_t retry;  } ECPTimerItem;  typedef struct ECPTimer { @@ -30,4 +30,4 @@ int ecp_timer_push(ECPTimerItem *ti);  void ecp_timer_pop(struct ECPConnection *conn, unsigned char mtype);  void ecp_timer_remove(struct ECPConnection *conn);  ecp_cts_t ecp_timer_exe(struct ECPSocket *sock); -ssize_t ecp_timer_send(struct ECPConnection *conn, ecp_timer_retry_t *send_f, unsigned char mtype, short cnt, ecp_cts_t timeout);
\ No newline at end of file +ssize_t ecp_timer_send(struct ECPConnection *conn, ecp_timer_retry_t send_f, unsigned char mtype, short cnt, ecp_cts_t timeout);  | 
