summaryrefslogtreecommitdiffstats
path: root/lib/zclient.c
diff options
context:
space:
mode:
authorhasso <hasso>2003-06-05 17:50:01 +0000
committerhasso <hasso>2003-06-05 17:50:01 +0000
commita939514c59fe1a56a820e82bc59d82c721076c03 (patch)
tree85a2d3d1d3e0a4f35d0865778c7522b8569b40f8 /lib/zclient.c
parent41908818b8f446befc3654fa5bbc98c6c0af92a3 (diff)
downloadquagga-a939514c59fe1a56a820e82bc59d82c721076c03.tar.bz2
quagga-a939514c59fe1a56a820e82bc59d82c721076c03.tar.xz
Patch from Cougar - sort iflist by name.
Diffstat (limited to 'lib/zclient.c')
-rw-r--r--lib/zclient.c5
1 files changed, 1 insertions, 4 deletions
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);