Cleanup: Improve const correctness
[hmcfgusb] / hmsniff.c
index c35b29d..2ffb9e1 100644 (file)
--- a/hmsniff.c
+++ b/hmsniff.c
@@ -42,7 +42,7 @@
 static int verbose = 0;
 
 /* See HMConfig.pm */
-char *hm_message_types(uint8_t type, uint8_t subtype)
+const char *hm_message_types(uint8_t type, uint8_t subtype)
 {
        switch(type) {
                case 0x00:
@@ -323,7 +323,7 @@ int main(int argc, char **argv)
                        buf[1] = speed;
                        hmcfgusb_send(dev.hmcfgusb, buf, 2, 1);
                } else {
-                       dev.hmuartlgw = hmuart_init(uart, parse_hmuartlgw, &rdata);
+                       dev.hmuartlgw = hmuart_init(uart, parse_hmuartlgw, &rdata, 1);
                        if (!dev.hmuartlgw) {
                                fprintf(stderr, "Can't initialize HM-MOD-UART!\n");
                                exit(1);
Impressum, Datenschutz