1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Author: Giuseppe Iuculano <giuseppe@iuculano.it>
Description: Some little fixes to silence compiler.
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/chklastlog.c
+++ b/chklastlog.c
@@ -177,7 +177,7 @@
{
if (*uid > MAX_ID)
{
- fprintf(stderr, "MAX_ID is %ld and current uid is %ld, please check\n\r", MAX_ID, *uid );
+ fprintf(stderr, "MAX_ID is %ld and current uid is %ld, please check\n\r", (long int)MAX_ID, (long int)*uid );
exit (1);
}
--- a/chkwtmp.c
+++ b/chkwtmp.c
@@ -33,6 +33,7 @@
#ifdef SOLARIS2
#include <fcntl.h>
#endif
+#include <stdlib.h>
#ifdef __FreeBSD__
#define WTMP_FILENAME "/var/log/wtmp"
|