From 7c253d76ff15e81a4c45f828176d7d24b99132e3 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sat, 6 Jun 2020 14:23:40 +0200 Subject: ecp_timer_retry_t typedef fixed --- code/ecp/timer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'code/ecp/timer.h') 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); -- cgit v1.2.3