commit | a939514c59fe1a56a820e82bc59d82c721076c03 | [log] [tgz] |
---|---|---|
author | hasso <hasso> | Thu Jun 05 17:50:01 2003 +0000 |
committer | hasso <hasso> | Thu Jun 05 17:50:01 2003 +0000 |
tree | 85a2d3d1d3e0a4f35d0865778c7522b8569b40f8 | |
parent | 41908818b8f446befc3654fa5bbc98c6c0af92a3 [diff] [blame] |
Patch from Cougar - sort iflist by name.
diff --git a/lib/zclient.c b/lib/zclient.c index bb7747f..f6be513 100644 --- a/lib/zclient.c +++ b/lib/zclient.c
@@ -555,10 +555,7 @@ /* 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);