summaryrefslogtreecommitdiff
path: root/code/ecp/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'code/ecp/timer.h')
-rw-r--r--code/ecp/timer.h6
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);