INN commit: trunk (6 files)

INN Commit Russ_Allbery at isc.org
Fri Aug 10 07:56:31 UTC 2007


    Date: Friday, August 10, 2007 @ 00:56:30
  Author: iulius
Revision: 7641

Use x(v)asprintf instead of (v)asprintf in previous commit.

Modified:
  trunk/frontends/feedone.c
  trunk/innd/cc.c
  trunk/innd/nc.c
  trunk/innfeed/imap_connection.c
  trunk/innfeed/innlistener.c
  trunk/lib/confparse.c

---------------------------+
 frontends/feedone.c       |    2 +-
 innd/cc.c                 |    2 +-
 innd/nc.c                 |    2 +-
 innfeed/imap_connection.c |    2 +-
 innfeed/innlistener.c     |    2 +-
 lib/confparse.c           |    4 ++--
 6 files changed, 7 insertions(+), 7 deletions(-)

Modified: frontends/feedone.c
===================================================================
--- frontends/feedone.c	2007-08-09 16:39:12 UTC (rev 7640)
+++ frontends/feedone.c	2007-08-10 07:56:30 UTC (rev 7641)
@@ -103,7 +103,7 @@
 	    PostMode = true;
 	    break;
 	case 'r':			/* Random Message-ID	*/
-            asprintf(&mesgid, "<%ld@%ld>", (long) getpid(),
+            xasprintf(&mesgid, "<%ld@%ld>", (long) getpid(),
                      (long) time(NULL));
 	    break;
 	case 't':

Modified: innd/cc.c
===================================================================
--- innd/cc.c	2007-08-09 16:39:12 UTC (rev 7640)
+++ innd/cc.c	2007-08-10 07:56:30 UTC (rev 7641)
@@ -1019,7 +1019,7 @@
 	who = av[2];
 	if (*who == '\0')
 	    who = NEWSMASTER;
-        asprintf(&buff, "%s %ld %s\n", Name, (long) Now.tv_sec, who);
+        xasprintf(&buff, "%s %ld %s\n", Name, (long) Now.tv_sec, who);
 	if (xwrite(fd, buff, strlen(buff)) < 0) {
 	    oerrno = errno;
 	    syslog(L_ERROR, "%s cant write %s %m", LogName, TIMES);

Modified: innd/nc.c
===================================================================
--- innd/nc.c	2007-08-09 16:39:12 UTC (rev 7640)
+++ innd/nc.c	2007-08-10 07:56:30 UTC (rev 7641)
@@ -337,7 +337,7 @@
     SMfreearticle(art);
 
     /* Write the message. */
-    asprintf(&buff, "%d 0 %s", NNTP_OK_STAT, p);
+    xasprintf(&buff, "%d 0 %s", NNTP_OK_STAT, p);
     NCwritereply(cp, buff);
     free(buff);
 }

Modified: innfeed/imap_connection.c
===================================================================
--- innfeed/imap_connection.c	2007-08-09 16:39:12 UTC (rev 7640)
+++ innfeed/imap_connection.c	2007-08-10 07:56:30 UTC (rev 7641)
@@ -2627,7 +2627,7 @@
 
     imap_GetTag(cxn);
 
-    asprintf(&tosend, "%s UID STORE %d +FLAGS.SILENT (\\Deleted)\r\n",
+    xasprintf(&tosend, "%s UID STORE %d +FLAGS.SILENT (\\Deleted)\r\n",
              cxn->imap_currentTag, uid);
 
     result = WriteToWire_imapstr(cxn, tosend, -1);

Modified: innfeed/innlistener.c
===================================================================
--- innfeed/innlistener.c	2007-08-09 16:39:12 UTC (rev 7640)
+++ innfeed/innlistener.c	2007-08-10 07:56:30 UTC (rev 7641)
@@ -715,7 +715,7 @@
   if (dropArtFile != NULL)
     free (dropArtFile) ;
 
-  asprintf (&dropArtFile, "%s/innfeed-dropped.%c%06d",
+  xasprintf (&dropArtFile, "%s/innfeed-dropped.%c%06d",
             tapeDir, droppedFileCount + 'A', (int) myPid) ;
 
   if ((droppedFp = fopen (dropArtFile,"w")) == NULL)

Modified: lib/confparse.c
===================================================================
--- lib/confparse.c	2007-08-09 16:39:12 UTC (rev 7640)
+++ lib/confparse.c	2007-08-10 07:56:30 UTC (rev 7641)
@@ -1652,7 +1652,7 @@
     struct config_parameter *param;
 
     va_start(args, fmt);
-    if (vasprintf(&message, fmt, args) < 0) {
+    if (xvasprintf(&message, fmt, args) < 0) {
         va_end(args);
         return;
     }
@@ -1682,7 +1682,7 @@
     char *message;
 
     va_start(args, fmt);
-    if (vasprintf(&message, fmt, args) < 0) {
+    if (xvasprintf(&message, fmt, args) < 0) {
         va_end(args);
         return;
     }



More information about the inn-committers mailing list