INN commit: trunk (backends/actsync.c lib/perl.c)

INN Commit Russ_Allbery at isc.org
Sun Jun 29 17:27:22 UTC 2008


    Date: Sunday, June 29, 2008 @ 10:27:22
  Author: iulius
Revision: 7928

Use xasprintf instead of asprintf.

Modified:
  trunk/backends/actsync.c
  trunk/lib/perl.c

--------------------+
 backends/actsync.c |    2 +-
 lib/perl.c         |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

Modified: backends/actsync.c
===================================================================
--- backends/actsync.c	2008-06-29 08:28:38 UTC (rev 7927)
+++ backends/actsync.c	2008-06-29 17:27:22 UTC (rev 7928)
@@ -2623,7 +2623,7 @@
 
 	/* exec the ctlinnd command */
 	p = concatpath(innconf->pathbin, INN_PATH_CTLINND);
-	asprintf(&w_string, "-t %d", w_flag);
+	xasprintf(&w_string, "-t %d", w_flag);
 
 	if (type == NULL) {
 	    execl(p,

Modified: lib/perl.c
===================================================================
--- lib/perl.c	2008-06-29 08:28:38 UTC (rev 7927)
+++ lib/perl.c	2008-06-29 17:27:22 UTC (rev 7928)
@@ -131,7 +131,7 @@
         SAVETMPS ;
 
         /* The Perl expression which will be evaluated. */   
-        asprintf(&evalfile, "do '%s'", startupfile);
+        xasprintf(&evalfile, "do '%s'", startupfile);
 
         PerlSilence();
         perl_eval_pv(evalfile, TRUE);
@@ -181,7 +181,7 @@
     }
 
     /* The Perl expression which will be evaluated. */
-    asprintf(&evalfile, "do '%s'", filterfile);
+    xasprintf(&evalfile, "do '%s'", filterfile);
 
     PerlSilence();
     perl_eval_pv(evalfile, TRUE);
@@ -197,7 +197,7 @@
         
         /* If the reload failed we don't want the old definition hanging
            around. */
-        asprintf(&evalfile, "undef &%s", function);
+        xasprintf(&evalfile, "undef &%s", function);
         perl_eval_pv(evalfile, TRUE);
 
         if (SvTRUE(ERRSV))     /* check $@ */ {



More information about the inn-committers mailing list