From: Florian Forster Date: Thu, 19 Nov 2009 10:08:00 +0000 (+0100) Subject: Fix a few simply typos. X-Git-Tag: librouteros-0.1.0~23 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e0846ddeb8558dced2e49d501b971d98ce2f9f66;p=routeros-api.git Fix a few simply typos. --- diff --git a/src/main.c b/src/main.c index 26b4423..c1a7aa3 100644 --- a/src/main.c +++ b/src/main.c @@ -326,6 +326,7 @@ static int send_command (mt_connection_t *c, /* {{{ */ return (status); buffer_ptr = buffer; + buffer_size = sizeof (buffer) - buffer_size; while (buffer_size > 0) { ssize_t bytes_written; @@ -614,7 +615,7 @@ int mt_disconnect (mt_connection_t *c) /* {{{ */ int mt_query (mt_connection_t *c, /* {{{ */ const char *command, size_t args_num, const char * const *args, - mt_reply_handler_t *handler, void *user_data) + mt_reply_handler_t handler, void *user_data) { int status; mt_reply_t *r; diff --git a/src/routeros_api.h b/src/routeros_api.h index 070b2ea..7995c28 100644 --- a/src/routeros_api.h +++ b/src/routeros_api.h @@ -43,7 +43,7 @@ int mt_disconnect (mt_connection_t *con); int mt_query (mt_connection_t *c, const char *command, size_t args_num, const char * const *args, - mt_reply_handler_t *handler, void *user_data); + mt_reply_handler_t handler, void *user_data); /* * Reply handling