]> git.droids-corp.org - aversive.git/commitdiff
test/rdline: fix prototype of complete_buffer
authorOlivier Matz <zer0@droids-corp.org>
Thu, 26 Mar 2015 18:38:44 +0000 (19:38 +0100)
committerOlivier Matz <zer0@droids-corp.org>
Thu, 26 Mar 2015 18:38:44 +0000 (19:38 +0100)
Parameters were inverted

Signed-off-by: Olivier Matz <zer0@droids-corp.org>
modules/ihm/rdline/test/main.c

index a029489a1aafe0f25a82729786de9eca8678e3f5..eeabd69084bd49e1fba73d840f7a3c0c0d373e7b 100644 (file)
@@ -139,9 +139,8 @@ const char * dummy_complete[] = {
 
 #define TEST_COMPLETION 1
 //#define TEST_COMPLETION 2
-int8_t complete_buffer(const char * buf, uint8_t size, 
-                    char * dstbuf, uint8_t dstsize,
-                    int * state)
+int8_t complete_buffer(const char *buf, char *dstbuf,
+       uint8_t dstsize, int *state)
 {
        sock_printf("complete -> %d\n", *state);
 #if TEST_COMPLETION == 1