]> The Tcpdump Group git mirrors - libpcap/blobdiff - missing/asprintf.c
CI: Call print_so_deps() on rpcapd in remote enabled build
[libpcap] / missing / asprintf.c
index b65310e1db2135164c9be5c5bdc253efa6b47bd4..7c636927d83baf76655b358045c2e86c486e725d 100644 (file)
@@ -11,7 +11,7 @@
  * it been given an infinite-sized buffer.
  */
 int
-pcap_vasprintf(char **strp, const char *format, va_list args)
+pcapint_vasprintf(char **strp, const char *format, va_list args)
 {
        char buf;
        int len;
@@ -21,7 +21,7 @@ pcap_vasprintf(char **strp, const char *format, va_list args)
 
        /*
         * XXX - the C99 standard says, in section 7.19.6.5 "The
-        * nprintf function":
+        * snprintf function":
         *
         *    The snprintf function is equivalent to fprintf, except that
         *    the output is written into an array (specified by argument s)
@@ -88,13 +88,13 @@ pcap_vasprintf(char **strp, const char *format, va_list args)
 }
 
 int
-pcap_asprintf(char **strp, const char *format, ...)
+pcapint_asprintf(char **strp, const char *format, ...)
 {
        va_list args;
        int ret;
 
        va_start(args, format);
-       ret = pcap_vasprintf(strp, format, args);
+       ret = pcapint_vasprintf(strp, format, args);
        va_end(args);
        return (ret);
 }