Const correctness.
[tinc] / src / cygwin / device.c
index 1265f9d..6d94988 100644 (file)
@@ -38,7 +38,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 pid_t reader_pid;
 static int sp[2];
@@ -219,8 +219,6 @@ static bool setup_device(void) {
                return false;
        }
 
-       device_info = "Windows tap device";
-
        logger(DEBUG_ALWAYS, LOG_INFO, "%s (%s) is a %s", device, iface, device_info);
 
        return true;