cfg-mod: Make --query print all values, not just those that are valid keys.
authorBen Pfaff <blp@nicira.com>
Tue, 12 May 2009 20:41:02 +0000 (13:41 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 12 May 2009 23:21:56 +0000 (16:21 -0700)
A "key" has a strict syntax, so calling cfg_get_all_keys() will discard
all the values that don't have that syntax.

utilities/cfg-mod.c

index 0e3de885b210ff19b3078e0405e5e5026adf0218..f62ffef8bb9682db8f1b99264e5d8d8e65a861ef 100644 (file)
@@ -79,7 +79,7 @@ print_vals(char *key)
     int i;
 
     svec_init(&vals);
-    cfg_get_all_keys(&vals, "%s", key);
+    cfg_get_all_strings(&vals, "%s", key);
 
     for (i=0; i<vals.n; i++) {
         printf("%s\n", vals.names[i]);