]> The Tcpdump Group git mirrors - tcpdump/commitdiff
do not use gcc-ism for macro, instead abuse C-syntax
authormcr <mcr>
Fri, 23 Apr 2004 19:03:39 +0000 (19:03 +0000)
committermcr <mcr>
Fri, 23 Apr 2004 19:03:39 +0000 (19:03 +0000)
netdissect.h
print-eap.c

index f995af8132a5fdddbae359d63fae9440e0c52bdc..bc3fac0dd40ef2d3853ec373828ea6af84859100 100644 (file)
@@ -21,7 +21,7 @@
  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
- * @(#) $Header: /tcpdump/master/tcpdump/netdissect.h,v 1.5 2004-04-05 04:27:41 mcr Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/tcpdump/netdissect.h,v 1.6 2004-04-23 19:03:39 mcr Exp $ (LBL)
  */
 
 #ifndef netdissect_h
@@ -196,7 +196,7 @@ struct netdissect_options {
 /* Bail if "var" was not captured */
 #define ND_TCHECK(var) ND_TCHECK2(var, sizeof(var))
 
-#define ND_PRINT(fmt, args...) (*ndo->ndo_printf)(ndo, fmt, ##args)
+#define ND_PRINT(STUFF) (*ndo->ndo_printf)STUFF
 
 #if 0  
 extern void ts_print(netdissect_options *ipdo,
index 34712e2d04e21cf1fa794fbb15863e30423c8660..95a2c97eb2f695140662a9807e11cb319fb4f9bd 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-eap.c,v 1.2 2004-04-05 22:35:36 guy Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-eap.c,v 1.3 2004-04-23 19:03:39 mcr Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -59,8 +59,8 @@ eap_print(netdissect_options *ndo,
        eap = (const struct eap_packet_t *)cp;
        ND_TCHECK(eap->data);
 
-        ND_PRINT("EAP code=%u id=%u length=%u ", 
-                eap->code, eap->id, (eap->length[0]<<8) + eap->length[1]);
+        ND_PRINT((ndo, "EAP code=%u id=%u length=%u ", 
+                 eap->code, eap->id, (eap->length[0]<<8) + eap->length[1]));
 
         if (!ndo->ndo_vflag)
             return;