X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=mqtt-arp.c;h=de0fcccea27cce24f0f2b4ffb3aeb6fcda8cc2b0;hb=8742da72f15ac87fc3f61acaa1ad02e2964c1868;hp=ba977b424ca6883c7a6983326c2eca73d1ad8489;hpb=a494b2492c039ab957abbf74398e0642c72787c0;p=mqtt-arp.git diff --git a/mqtt-arp.c b/mqtt-arp.c index ba977b4..de0fccc 100644 --- a/mqtt-arp.c +++ b/mqtt-arp.c @@ -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);