]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-udld.c
change make check to work with POSIX shell
[tcpdump] / print-udld.c
index 22a3487f4fdb9daa2ed4aa8668951c452eafee79..02921d0e449834dbd921e4ba80f4594fa10d3a07 100644 (file)
  * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  * FOR A PARTICULAR PURPOSE.
  *
- * UNIDIRECTIONAL LINK DETECTION (UDLD) as per RFC5171
- *
  * Original code by Carles Kishimoto <[email protected]>
  */
 
+/* \summary: Cisco UniDirectional Link Detection (UDLD) protocol printer */
+
+/* specification: RFC 5171 */
+
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -27,7 +29,6 @@
 #include "extract.h"
 
 static const char tstr[] = " [|udld]";
-static const char istr[] = " (invalid)";
 
 #define UDLD_HEADER_LEN                        4
 #define UDLD_DEVICE_ID_TLV             0x0001
@@ -158,7 +159,7 @@ udld_print (netdissect_options *ndo, const u_char *pptr, u_int length)
 
         case UDLD_ECHO_TLV:
             ND_PRINT((ndo, ", "));
-            fn_printn(ndo, tptr, len, NULL);
+            (void)fn_printn(ndo, tptr, len, NULL);
             break;
 
         case UDLD_MESSAGE_INTERVAL_TLV: