]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Fix some errors.
authorGuy Harris <[email protected]>
Fri, 8 Jun 2012 05:18:25 +0000 (22:18 -0700)
committerGuy Harris <[email protected]>
Fri, 8 Jun 2012 05:18:25 +0000 (22:18 -0700)
isis_print_mcid() returns no value and nobody expects it to; declare it
void, not int.

Fix a typo in a case statement ("defualt" rather than "default").

Fix indentation.

print-isoclns.c

index 6c250dd1b65a1af9129a5f8d50d8e67d13b12593..b8b181384145316a8105ffacee835ad39777beb0 100644 (file)
@@ -1302,7 +1302,7 @@ trunc:
 }   
 
 
-static int
+static void
 isis_print_mcid (const struct isis_spb_mcid *mcid)
 {
   int i;
@@ -1313,7 +1313,7 @@ isis_print_mcid (const struct isis_spb_mcid *mcid)
   { 
     printf("%c", mcid->name[i]);
     if(mcid->name[i] == '\0')
-    break;
+        break;
   }
 
   printf("\n\t              Lvl: %d", 
@@ -1418,7 +1418,7 @@ isis_print_mt_port_cap_subtlv (const u_int8_t *tptr, int len)
 
           break;
       
-      defualt:
+      default:
           break;
     }
   }