From 7a9b5b6903821f529d6db1a89cda3d933352cde6 Mon Sep 17 00:00:00 2001 From: Pierre-Marc Fournier Date: Tue, 16 Mar 2010 16:55:47 -0400 Subject: [PATCH] fix warning on incorrect function prototype --- libustcomm/ustcomm.c | 2 +- libustcomm/ustcomm.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libustcomm/ustcomm.c b/libustcomm/ustcomm.c index 8324f21..461766d 100644 --- a/libustcomm/ustcomm.c +++ b/libustcomm/ustcomm.c @@ -927,7 +927,7 @@ int free_ustcomm_client_poll(void *data) return 0; } -void ustcomm_mp_add_app_clients(struct mpentries *ent, struct ustcomm_app *app, int (*cb)(struct ustcomm_connection *conn, char *msg)) +void ustcomm_mp_add_app_clients(struct mpentries *ent, struct ustcomm_app *app, int (*cb)(char *recvbuf, struct ustcomm_source *src)) { struct ustcomm_connection *conn; diff --git a/libustcomm/ustcomm.h b/libustcomm/ustcomm.h index a8fd640..f96ca16 100644 --- a/libustcomm/ustcomm.h +++ b/libustcomm/ustcomm.h @@ -84,7 +84,7 @@ extern int ustcomm_send_request(struct ustcomm_connection *conn, const char *req extern int ustcomm_send_reply(struct ustcomm_server *server, char *msg, struct ustcomm_source *src); extern int ustcomm_disconnect(struct ustcomm_connection *conn); extern int ustcomm_close_all_connections(struct ustcomm_server *server); -extern void ustcomm_mp_add_app_clients(struct mpentries *ent, struct ustcomm_app *app, int (*cb)(struct ustcomm_connection *conn, char *msg)); +extern void ustcomm_mp_add_app_clients(struct mpentries *ent, struct ustcomm_app *app, int (*cb)(char *recvbuf, struct ustcomm_source *src)); extern int nth_token_is(const char *str, const char *token, int tok_no); -- 2.34.1