INN commit: branches/2.5/contrib (expirectl.c mlockfile.c)

INN Commit rra at isc.org
Sun Sep 21 19:54:27 UTC 2014


    Date: Sunday, September 21, 2014 @ 12:54:27
  Author: iulius
Revision: 9717

Fixed a warning and an unnecessary sys/stropts.h header

Modified:
  branches/2.5/contrib/expirectl.c
  branches/2.5/contrib/mlockfile.c

-------------+
 expirectl.c |    2 +-
 mlockfile.c |    1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

Modified: expirectl.c
===================================================================
--- expirectl.c	2014-09-21 19:53:42 UTC (rev 9716)
+++ expirectl.c	2014-09-21 19:54:27 UTC (rev 9717)
@@ -291,7 +291,7 @@
 	FILE *fo;
 
 	if ((fo = fopen(EXPIRE_DAYS, "w")) != NULL) {
-	    fprintf(fo, "time 0x%08lx\n", expireIncTime);
+	    fprintf(fo, "time 0x%08lx\n", (unsigned long) expireIncTime);
 	    fprintf(fo, "days %ld\n", expireDays);
 	    fclose(fo);
 	} else {

Modified: mlockfile.c
===================================================================
--- mlockfile.c	2014-09-21 19:53:42 UTC (rev 9716)
+++ mlockfile.c	2014-09-21 19:54:27 UTC (rev 9717)
@@ -17,7 +17,6 @@
 #include <unistd.h>
 #include <sys/mman.h>
 #include <sys/stat.h>
-#include <sys/stropts.h>
 
 struct mlock {
     const char *path;



More information about the inn-committers mailing list