Const correctness.
[oweals/tinc.git] / src / multicast_device.c
index 2cc7163a625913158c32b0b4e314eaea191e2edd..93a40c4134b30412e030c88a0333201b133f68f3 100644 (file)
@@ -29,7 +29,7 @@
 #include "route.h"
 #include "xalloc.h"
 
-static char *device_info;
+static const char *device_info = "multicast socket";
 
 static uint64_t device_total_in = 0;
 static uint64_t device_total_out = 0;
@@ -43,8 +43,6 @@ static bool setup_device(void) {
        char *space;
        int ttl = 1;
 
-       device_info = "multicast socket";
-
        get_config_string(lookup_config(config_tree, "Interface"), &iface);
 
        if(!get_config_string(lookup_config(config_tree, "Device"), &device)) {