]> the.earth.li Git - mqtt-arp.git/blobdiff - mqtt-arp.c
Fix setting of default options
[mqtt-arp.git] / mqtt-arp.c
index ba977b424ca6883c7a6983326c2eca73d1ad8489..de0fcccea27cce24f0f2b4ffb3aeb6fcda8cc2b0 100644 (file)
@@ -210,6 +210,7 @@ void main_loop(struct ma_config *config, struct mosquitto *mosq, int sock)
                        break;
                case RTM_DELNEIGH:
                case RTM_GETNEIGH:
+                       break;
                default:
                        printf("Unknown message type: %d\n", hdr->nlmsg_type);
                }
@@ -365,9 +366,9 @@ int main(int argc, char *argv[])
        if (!config.mqtt_host)
                config.mqtt_host = MQTT_HOST;
        if (!config.mqtt_topic)
-               config.mqtt_host = MQTT_TOPIC;
+               config.mqtt_topic = MQTT_TOPIC;
        if (!config.location)
-               config.mqtt_host = LOCATION;
+               config.location = LOCATION;
 
        signal(SIGTERM, shutdown_request);