fix return code
authorEugene Crosser <crosser@average.org>
Wed, 6 Nov 2013 20:47:30 +0000 (00:47 +0400)
committerEugene Crosser <crosser@average.org>
Wed, 6 Nov 2013 20:47:30 +0000 (00:47 +0400)
serial.c

index 6bce59e8cf7b282a6718d4f6b2d9e6be09673223..8debe3b8eed128c4c147c0810c7c6de20af68542 100644 (file)
--- a/serial.c
+++ b/serial.c
@@ -19,6 +19,7 @@ int serial_switch(serializer_t *srl, void *buffer, int size)
        srl->buffer = buffer;
        srl->bufsize = size;
        srl->cursor = buffer + used;
+       return 0;
 }
 
 int serial_put(serializer_t *srl, void *item, int size)