summaryrefslogtreecommitdiff
path: root/zebra/client_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/client_main.c')
-rw-r--r--zebra/client_main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/zebra/client_main.c b/zebra/client_main.c
index 4035e53f7c..1ead7ee1fd 100644
--- a/zebra/client_main.c
+++ b/zebra/client_main.c
@@ -148,9 +148,8 @@ void zebra_sim(FILE *fp)
continue;
}
- for (i = 0; i < 10; i++) {
- if (!zebra_type[i].str)
- break;
+ i = 0;
+ while (zebra_type[i++].str) {
if (strcmp(zebra_type[i].str, str) == 0) {
type = zebra_type[i].type;
break;