Import patch iproute2-compile-fixes-1.diff

(Logical change 1.93)
This commit is contained in:
net[shemminger]!shemminger 2004-10-07 18:55:51 +00:00
parent 6232f4b527
commit 44d3eb258c
2 changed files with 3 additions and 2 deletions

View File

@ -59,5 +59,6 @@ clean:
clobber: clean
rm -f Config
distclean: clean clobber
.EXPORT_ALL_VARIABLES:

View File

@ -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);