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
|
clobber: clean
|
||||||
rm -f Config
|
rm -f Config
|
||||||
|
|
||||||
|
distclean: clean clobber
|
||||||
|
|
||||||
.EXPORT_ALL_VARIABLES:
|
.EXPORT_ALL_VARIABLES:
|
||||||
|
|
|
||||||
|
|
@ -280,7 +280,7 @@ static const char *strxf_time(__u64 time)
|
||||||
t = (long)time;
|
t = (long)time;
|
||||||
tp = localtime(&t);
|
tp = localtime(&t);
|
||||||
|
|
||||||
strftime(str, sizeof(str), "%F %T", tp);
|
strftime(str, sizeof(str), "%Y-%m-%d %T", tp);
|
||||||
}
|
}
|
||||||
|
|
||||||
return str;
|
return str;
|
||||||
|
|
@ -410,7 +410,7 @@ void xfrm_selector_print(struct xfrm_selector *sel, __u16 family,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sel->ifindex > 0) {
|
if (sel->ifindex > 0) {
|
||||||
char buf[IF_NAMESIZE];
|
char buf[IFNAMSIZ];
|
||||||
|
|
||||||
memset(buf, '\0', sizeof(buf));
|
memset(buf, '\0', sizeof(buf));
|
||||||
if_indextoname(sel->ifindex, buf);
|
if_indextoname(sel->ifindex, buf);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue