From a939514c59fe1a56a820e82bc59d82c721076c03 Mon Sep 17 00:00:00 2001 From: hasso Date: Thu, 5 Jun 2003 17:50:01 +0000 Subject: Patch from Cougar - sort iflist by name. --- lib/zclient.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/zclient.c') diff --git a/lib/zclient.c b/lib/zclient.c index bb7747fa..f6be5138 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -555,10 +555,7 @@ zebra_interface_add_read (struct stream *s) /* If such interface does not exist, make new one. */ if (! ifp) - { - ifp = if_create (); - strncpy (ifp->name, ifname_tmp, IFNAMSIZ); - } + ifp = if_create (ifname_tmp, IFNAMSIZ); /* Read interface's index. */ ifp->ifindex = stream_getl (s); -- cgit v1.2.1