summaryrefslogtreecommitdiff
path: root/code/ecp/core.h
diff options
context:
space:
mode:
Diffstat (limited to 'code/ecp/core.h')
-rw-r--r--code/ecp/core.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/code/ecp/core.h b/code/ecp/core.h
index 419b563..7e37881 100644
--- a/code/ecp/core.h
+++ b/code/ecp/core.h
@@ -149,7 +149,7 @@ struct ECPFragIter;
#include "rbuf.h"
#endif
-typedef int ecp_rng_t (void *, size_t);
+typedef int (*ecp_rng_t) (void *, size_t);
typedef int ecp_conn_handler_new_t (struct ECPSocket *s, struct ECPConnection *p, unsigned char *msg, size_t sz, struct ECPConnection **c);
typedef ssize_t ecp_conn_handler_msg_t (struct ECPConnection *c, ecp_seq_t s, unsigned char t, unsigned char *msg, ssize_t sz, struct ECP2Buffer *b);
@@ -237,7 +237,7 @@ typedef struct ECPSockCTable {
} ECPSockCTable;
typedef struct ECPContext {
- ecp_rng_t *rng;
+ ecp_rng_t rng;
ecp_conn_alloc_t *conn_alloc;
ecp_conn_free_t *conn_free;
ECPConnHandler *handler[ECP_MAX_CTYPE];