diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-01-01 11:15:50 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-01-01 13:36:43 -0500 |
commit | ef7532531942d59f81bfbd8a8f923f17e4827952 (patch) | |
tree | f686c9f60e39f34bdf6407d91d6cb67890847fe2 /src/libsystemd-network/sd-lldp.c | |
parent | e65ef51dee7a7d3565f471b67f29a257c6128fb3 (diff) |
network: fix scanf/printf format
usec_t is defined as 64 bit wide, but long is 32 bit on many archs.
Diffstat (limited to 'src/libsystemd-network/sd-lldp.c')
-rw-r--r-- | src/libsystemd-network/sd-lldp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-lldp.c b/src/libsystemd-network/sd-lldp.c index fa45310059..86c734b8c2 100644 --- a/src/libsystemd-network/sd-lldp.c +++ b/src/libsystemd-network/sd-lldp.c @@ -495,7 +495,7 @@ int sd_lldp_save(sd_lldp *lldp, const char *lldp_file) { if (time - p->until <= 0) continue; - sprintf(buf, "'_TTL=%lu' ", p->until); + sprintf(buf, "'_TTL="USEC_FMT"' ", p->until); k = strappend(s, buf); if (!k) |