Fix a few simply typos.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Thu, 19 Nov 2009 10:08:00 +0000 (11:08 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Thu, 19 Nov 2009 10:08:00 +0000 (11:08 +0100)
src/main.c
src/routeros_api.h

index 26b4423..c1a7aa3 100644 (file)
@@ -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;
index 070b2ea..7995c28 100644 (file)
@@ -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