]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-sip.c
NDOize safeputs() and safeputchar()
[tcpdump] / print-sip.c
index 080d5606a0689cf00717d39bf0e7d23e5b0a85f3..71d1bc3434539c86276bf11e9a82d96c7a191fe4 100644 (file)
  * Original code by Hannes Gredler ([email protected])
  */
 
-#ifndef lint
-static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-sip.c,v 1.1 2004-07-27 17:04:20 hannes Exp $";
-#endif
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -30,8 +25,6 @@ static const char rcsid[] _U_ =
 #include "interface.h"
 #include "extract.h"
 
-#include "udp.h"
-
 void
 sip_print(register const u_char *pptr, register u_int len)
 {
@@ -46,7 +39,7 @@ sip_print(register const u_char *pptr, register u_int len)
     for (idx = 0; idx < len; idx++) {
         TCHECK2(*(pptr+idx), 2);
         if (EXTRACT_16BITS(pptr+idx) != 0x0d0a) { /* linefeed ? */
-            safeputchar(*(pptr+idx));
+            safeputchar(gndo, *(pptr + idx));
         } else {
             printf("\n\t");
             idx+=1;