From 4aa5825a57c455bd716708da875b85170959c0bb Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 6 May 2014 14:43:44 +0200 Subject: [PATCH] example: rename callbacks Signed-off-by: Felix Fietkau --- uclient-example.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/uclient-example.c b/uclient-example.c index 49d1884..9040f84 100644 --- a/uclient-example.c +++ b/uclient-example.c @@ -94,7 +94,7 @@ static void request_done(struct uclient *cl) uloop_end(); } -static void example_header_done(struct uclient *cl) +static void header_done_cb(struct uclient *cl) { static int retries; @@ -136,7 +136,7 @@ static void example_header_done(struct uclient *cl) } } -static void example_read_data(struct uclient *cl) +static void read_data_cb(struct uclient *cl) { char buf[256]; int len; @@ -173,7 +173,7 @@ static void init_request(struct uclient *cl) uclient_request(cl); } -static void example_eof(struct uclient *cl) +static void eof_cb(struct uclient *cl) { request_done(cl); } @@ -213,9 +213,9 @@ static void handle_uclient_error(struct uclient *cl, int code) } static const struct uclient_cb cb = { - .header_done = example_header_done, - .data_read = example_read_data, - .data_eof = example_eof, + .header_done = header_done_cb, + .data_read = read_data_cb, + .data_eof = eof_cb, .error = handle_uclient_error, }; -- 2.25.1