]> The Tcpdump Group git mirrors - tcpdump/commitdiff
"#if 0" out stuff for "asprintf()", "asnprintf()", "vasprintf()", and
authorguy <guy>
Fri, 12 Jan 2001 10:14:40 +0000 (10:14 +0000)
committerguy <guy>
Fri, 12 Jan 2001 10:14:40 +0000 (10:14 +0000)
"vasnprintf()", as we're not using any of them, and we're not declaring
them in "interface.h" (keep them around for now in case we decide we
need them; they may be useful if we ever want to "sprintf" a string and
want the string to grow dynamically to hold what we're putting into it).

missing/snprintf.c

index bada4721344cd35a8197ff544b38f44efb1c49d2..2b8368838f163f55889ce0ffb2df75d3b6f26c47 100644 (file)
@@ -31,7 +31,7 @@
  * SUCH DAMAGE.
  */
 
-/* $Id: snprintf.c,v 1.4 2001-01-02 22:33:04 guy Exp $ */
+/* $Id: snprintf.c,v 1.5 2001-01-12 10:14:40 guy Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include <config.h>
@@ -39,7 +39,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-     "@(#) $Header: /tcpdump/master/tcpdump/missing/snprintf.c,v 1.4 2001-01-02 22:33:04 guy Exp $";
+     "@(#) $Header: /tcpdump/master/tcpdump/missing/snprintf.c,v 1.5 2001-01-12 10:14:40 guy Exp $";
 #endif
 
 #include <stdio.h>
@@ -93,6 +93,7 @@ sn_append_char (struct state *state, unsigned char c)
 }
 #endif
 
+#if 0
 static int
 as_reserve (struct state *state, size_t n)
 {
@@ -126,6 +127,7 @@ as_append_char (struct state *state, unsigned char c)
     return 0;
   }
 }
+#endif
 
 static int
 append_number(struct state *state,
@@ -490,6 +492,7 @@ snprintf (char *str, size_t sz, const char *format, ...)
 }
 #endif
 
+#if 0
 #ifndef HAVE_ASPRINTF
 int
 asprintf (char **ret, const char *format, ...)
@@ -600,6 +603,7 @@ vasnprintf (char **ret, size_t max_sz, const char *format, va_list args)
   }
 }
 #endif
+#endif
 
 #ifndef HAVE_VSNPRINTF
 int