X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Ftest-stp.c;h=fecada712787351feb6d848bb43f799df47ce810;hb=c06bba01302e3dc1ec7808024bc37ce90956b49e;hp=eab13d63afdbab1a08d6208f7a3e73459c3de2e7;hpb=93ff0290fda0f02904686989243089faaa9229e6;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);