INN commit: trunk (contrib contrib/mlockfile.c contrib/pullart.c)

INN Commit rra at isc.org
Sun Sep 21 12:31:25 UTC 2014


    Date: Sunday, September 21, 2014 @ 05:31:25
  Author: iulius
Revision: 9706

Fix a few warnings, and update svn:ignore for contrib

Modified:
  trunk/contrib/	(properties)
  trunk/contrib/mlockfile.c
  trunk/contrib/pullart.c

-------------+
 mlockfile.c |    2 ++
 pullart.c   |    8 +++-----
 2 files changed, 5 insertions(+), 5 deletions(-)


Property changes on: trunk/contrib
___________________________________________________________________
Modified: svn:ignore
   - .libs
archivegz
backlogstat
cleannewsgroups
delayer
findreadgroups
makeexpctl
makestorconf
mlockfile
newsresp
pullart
reset-cnfs
respool
stathist
thdexpire
tunefeed

   + .libs
archivegz
auth_pass
backlogstat
cleannewsgroups
delayer
expirectl
findreadgroups
makeexpctl
makestorconf
mlockfile
newsresp
pullart
reset-cnfs
respool
stathist
thdexpire
tunefeed


Modified: contrib/mlockfile.c
===================================================================
--- contrib/mlockfile.c	2014-09-21 12:29:55 UTC (rev 9705)
+++ contrib/mlockfile.c	2014-09-21 12:31:25 UTC (rev 9706)
@@ -27,6 +27,8 @@
     size_t length;
 };
 
+void inn_lock_files(struct mlock *);
+
 char *progname;
 
 int flush = 0;

Modified: contrib/pullart.c
===================================================================
--- contrib/pullart.c	2014-09-21 12:29:55 UTC (rev 9705)
+++ contrib/pullart.c	2014-09-21 12:31:25 UTC (rev 9706)
@@ -17,9 +17,7 @@
 */
 
 #include "config.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include "clibrary.h"
 
 #define INFILE     1
 #define FILEPREFIX 2
@@ -195,7 +193,7 @@
 
 		}
 
-	close (Infile);
+	fclose (Infile);
 
 	return 0;
 	}
@@ -290,7 +288,7 @@
 	while (n--)
 		fprintf (outfile, "%c", *buff++);
 
-	close (outfile);
+	fclose (outfile);
 
 	/*  Return number of files written  */
 	return 1;



More information about the inn-committers mailing list