chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
network: fix scanf/printf format
[elogind.git]
/
src
/
libsystemd-network
/
sd-lldp.c
diff --git
a/src/libsystemd-network/sd-lldp.c
b/src/libsystemd-network/sd-lldp.c
index fa4531005937c7ecf102905b5c4f683de7b368f2..86c734b8c24c8a6652c657d29b3b9959daa07554 100644
(file)
--- 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)