libqcdm,ipv6pref: fix warnings with -Wdiscarded-qualifiers

ipv6pref.c: In function ‘main’:
  ipv6pref.c:288:11: warning: passing argument 1 of ‘putenv’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
    288 |   putenv ("QCDM_DEBUG=1");
        |           ^~~~~~~~~~~~~~
This commit is contained in:
Aleksander Morgado
2020-01-30 11:59:14 +01:00
parent 07fe3bed65
commit 47a380a2ae
+1 -1
View File
@@ -285,7 +285,7 @@ main (int argc, char *argv[])
}
if (debug)
putenv ("QCDM_DEBUG=1");
putenv ((char *)"QCDM_DEBUG=1");
fd = com_setup (dmport);
if (fd < 0)