mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2026-01-25 00:09:26 +00:00
Import patch iproute2-compile-fixes-1.diff
(Logical change 1.93)
This commit is contained in:
parent
6232f4b527
commit
44d3eb258c
1
Makefile
1
Makefile
@ -59,5 +59,6 @@ clean:
|
||||
clobber: clean
|
||||
rm -f Config
|
||||
|
||||
distclean: clean clobber
|
||||
|
||||
.EXPORT_ALL_VARIABLES:
|
||||
|
||||
@ -280,7 +280,7 @@ static const char *strxf_time(__u64 time)
|
||||
t = (long)time;
|
||||
tp = localtime(&t);
|
||||
|
||||
strftime(str, sizeof(str), "%F %T", tp);
|
||||
strftime(str, sizeof(str), "%Y-%m-%d %T", tp);
|
||||
}
|
||||
|
||||
return str;
|
||||
@ -410,7 +410,7 @@ void xfrm_selector_print(struct xfrm_selector *sel, __u16 family,
|
||||
}
|
||||
|
||||
if (sel->ifindex > 0) {
|
||||
char buf[IF_NAMESIZE];
|
||||
char buf[IFNAMSIZ];
|
||||
|
||||
memset(buf, '\0', sizeof(buf));
|
||||
if_indextoname(sel->ifindex, buf);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user