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

INN Commit rra at isc.org
Sun Sep 21 19:53:42 UTC 2014


    Date: Sunday, September 21, 2014 @ 12:53:42
  Author: iulius
Revision: 9716

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

Modified:
  trunk/contrib/expirectl.c
  trunk/contrib/mlockfile.c

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

Modified: expirectl.c
===================================================================
--- expirectl.c	2014-09-21 18:02:14 UTC (rev 9715)
+++ expirectl.c	2014-09-21 19:53:42 UTC (rev 9716)
@@ -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 {
@@ -299,8 +299,6 @@
 	}
     }
     exit(0);
-
-    return 1;
 }
 
 

Modified: mlockfile.c
===================================================================
--- mlockfile.c	2014-09-21 18:02:14 UTC (rev 9715)
+++ mlockfile.c	2014-09-21 19:53:42 UTC (rev 9716)
@@ -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