X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Ftest-stp.c;h=fecada712787351feb6d848bb43f799df47ce810;hb=2bcf7df6f7a87d8940deff6fbbc359b0a310a74a;hp=eab13d63afdbab1a08d6208f7a3e73459c3de2e7;hpb=a4af00400a835eb87569ba40e21874c05e872c0f;p=openvswitch diff --git a/tests/test-stp.c b/tests/test-stp.c index eab13d63..fecada71 100644 --- a/tests/test-stp.c +++ b/tests/test-stp.c @@ -14,6 +14,8 @@ * limitations under the License. */ +#include + #include "stp.h" #include #include @@ -241,7 +243,7 @@ dump_bridge_tree(struct test_case *tc, struct bridge *b, int level) } static void -dump_lan_tree(struct test_case *tc, struct lan *lan, int level) +dump_lan_tree(struct test_case *tc, struct lan *lan, int level) { int i; @@ -505,7 +507,7 @@ main(int argc, char *argv[]) lan = NULL; } else if (strlen(token) == 1 && islower((unsigned char)*token)) { - lan = tc->lans[*token - 'a']; + lan = tc->lans[*token - 'a']; } else { err("%s is not a valid LAN name " "(0 or a lowercase letter)", token);