diff options
author | Jan Janssen <medhefgo@web.de> | 2022-08-30 09:28:56 +0200 |
---|---|---|
committer | Jan Janssen <medhefgo@web.de> | 2022-08-30 12:03:33 +0200 |
commit | 5570a09702b2a4c77772617d5fce97b6b70ec03f (patch) | |
tree | 6894fe53f7ed84cce0f20d1190648e0797ca8023 /src/libsystemd-network | |
parent | 2676befc73b3f40974ddad84972e873e5b826262 (diff) | |
download | systemd-5570a09702b2a4c77772617d5fce97b6b70ec03f.tar.gz |
tree-wide: Fix format specifier warnings for %x
Unfortunately, hex output can only be produced with unsigned types. Some
cases can be fixed by producing the correct type, but a few simply have
to be cast. At least casting makes it explicit.
Diffstat (limited to 'src/libsystemd-network')
-rw-r--r-- | src/libsystemd-network/test-dhcp-option.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-network/test-dhcp-option.c b/src/libsystemd-network/test-dhcp-option.c index ec4f9706d5..82c5cdb67a 100644 --- a/src/libsystemd-network/test-dhcp-option.c +++ b/src/libsystemd-network/test-dhcp-option.c @@ -339,13 +339,13 @@ static void test_option_set(void) { if (verbose) printf("%2d: 0x%02x(0x%02x) (options)\n", 9, result->options[9], - SD_DHCP_OPTION_END); + (unsigned) SD_DHCP_OPTION_END); assert_se(result->options[9] == SD_DHCP_OPTION_END); if (verbose) printf("%2d: 0x%02x(0x%02x) (options)\n", 10, result->options[10], - SD_DHCP_OPTION_PAD); + (unsigned) SD_DHCP_OPTION_PAD); assert_se(result->options[10] == SD_DHCP_OPTION_PAD); |