Const correctness.
[oweals/tinc.git] / src / cygwin / device.c
index 3a242bfaa3c2f589d2d8e608b3e4fddc17ed2f4c..1165d675cf5281d14fa36e05744b266ae88f83e7 100644 (file)
@@ -37,7 +37,7 @@ int device_fd = -1;
 static HANDLE device_handle = INVALID_HANDLE_VALUE;
 char *device = NULL;
 char *iface = NULL;
-static char *device_info = NULL;
+static const char *device_info = "Windows tap device";
 
 static uint64_t device_total_in = 0;
 static uint64_t device_total_out = 0;
@@ -221,8 +221,6 @@ static bool setup_device(void) {
                return false;
        }
 
-       device_info = "Windows tap device";
-
        logger(LOG_INFO, "%s (%s) is a %s", device, iface, device_info);
 
        return true;