From: Pierre-Marc Fournier Date: Tue, 16 Mar 2010 20:55:47 +0000 (-0400) Subject: fix warning on incorrect function prototype X-Git-Tag: v0.4~12 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7a9b5b6903821f529d6db1a89cda3d933352cde6;p=ust.git fix warning on incorrect function prototype --- 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);