1
0
mirror of https://github.com/yarrick/iodine.git synced 2024-11-22 13:06:06 +03:00

Use %d for size_t sprintf

This commit is contained in:
Jim 2007-11-27 20:04:13 +00:00 committed by Erik Ekman
parent 59e6239f5a
commit 1188572a12

View File

@ -222,14 +222,14 @@ tun_setmtu(const size_t mtu)
if (mtu > 200 && mtu < 1500) {
snprintf(cmdline, sizeof(cmdline),
"/sbin/ifconfig %s mtu %ld",
"/sbin/ifconfig %s mtu %u",
if_name,
mtu);
printf("Setting MTU of %s to %ld\n", if_name, mtu);
printf("Setting MTU of %s to %u\n", if_name, mtu);
return system(cmdline);
} else {
warn("MTU out of range: %ld\n", mtu);
warn("MTU out of range: %u\n", mtu);
}
return 1;