diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-02-19 15:21:47 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-02-19 15:23:15 +0100 |
| commit | 647e8b6e473cc756feeb5e40cc7d064398678f0d (patch) | |
| tree | e2583e98b2d01e73fbf3e37e8b995b5836d367f3 /executor/common_linux.h | |
| parent | 23f4bab4510622442f679aa420d514fce733ea52 (diff) | |
executor: fix format strings
clang complains that we pass an int to %hx. Fix it.
Diffstat (limited to 'executor/common_linux.h')
| -rw-r--r-- | executor/common_linux.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h index b6860e30d..26137e5b7 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -440,7 +440,7 @@ static void initialize_tun(void) // Addresses are chosen to be in the same subnet as tun addresses. #define DEV_IPV4 "172.20.20.%d" -#define DEV_IPV6 "fe80::%02hx" +#define DEV_IPV6 "fe80::%02x" #define DEV_MAC 0x00aaaaaaaaaa // We test in a separate namespace, which does not have any network devices initially (even lo). @@ -616,7 +616,7 @@ static void initialize_netdevices_init(void) sprintf(addr, "172.30.%d.%d", i, (int)procid + 1); netlink_add_addr4(sock, dev, addr); if (!devtypes[i].noipv6) { - sprintf(addr, "fe88::%02hx:%02hx", i, (int)procid + 1); + sprintf(addr, "fe88::%02x:%02x", i, (int)procid + 1); netlink_add_addr6(sock, dev, addr); } int macsize = devtypes[i].macsize; |
