[28686] in Source-Commits

home help back first fref pref prev next nref lref last post

lert commit: Fix some more compile warnings with recent GCC

daemon@ATHENA.MIT.EDU (Anders Kaseorg)
Fri Sep 2 18:26:12 2016

Date: Fri, 2 Sep 2016 18:26:10 -0400
From: Anders Kaseorg <andersk@mit.edu>
Message-Id: <201609022226.u82MQAhL006544@drugstore.mit.edu>
To: source-commits@mit.edu

https://github.com/mit-athena/lert/commit/f81d762fe660598c5df56a3c9a10f60713d33bb4
commit f81d762fe660598c5df56a3c9a10f60713d33bb4
Author: Anders Kaseorg <andersk@mit.edu>
Date:   Fri Sep 2 18:14:49 2016 -0400

    Fix some more compile warnings with recent GCC
    
    Signed-off-by: Anders Kaseorg <andersk@mit.edu>

 lertdump.c |    2 +-
 lertload.c |    2 +-
 lertsaid.c |    2 +-
 lertstop.c |    2 +-
 lertused.c |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/lertdump.c b/lertdump.c
index d69b59f..7cc8261 100644
--- a/lertdump.c
+++ b/lertdump.c
@@ -13,7 +13,7 @@
 
 #include "lert.h"     
 
-main(argc, argv)
+int main(argc, argv)
 int argc;
 char ** argv;
 {
diff --git a/lertload.c b/lertload.c
index 90b8fab..3d33dfe 100644
--- a/lertload.c
+++ b/lertload.c
@@ -96,7 +96,7 @@ int main(int argc, char **argv)
  */
     data.dsize = nd_c;
     if (dbm_store(db, key, data, DBM_REPLACE) < 0) {
-      fprintf(stderr, "dbm_store() failed: Entry = %d\n", key.dptr);
+      fprintf(stderr, "dbm_store() failed: Entry = %p\n", key.dptr);
       (void) dbm_clearerr(db);
     }
   }
diff --git a/lertsaid.c b/lertsaid.c
index b17e1f8..ebddb0c 100644
--- a/lertsaid.c
+++ b/lertsaid.c
@@ -13,7 +13,7 @@
 
 #include "lert.h"     
 
-main(argc, argv)
+int main(argc, argv)
 int argc;
 char ** argv;
 {
diff --git a/lertstop.c b/lertstop.c
index 27860ac..16c534a 100644
--- a/lertstop.c
+++ b/lertstop.c
@@ -20,7 +20,7 @@ change keys while traversing.
 
 #include "lert.h"     
 
-main(argc, argv)
+int main(argc, argv)
 int argc;
 char ** argv;
 {
diff --git a/lertused.c b/lertused.c
index 1b46677..76a883d 100644
--- a/lertused.c
+++ b/lertused.c
@@ -14,7 +14,7 @@
 
 #include "lert.h"     
 
-main(argc, argv)
+int main(argc, argv)
 int argc;
 char ** argv;
 {

home help back first fref pref prev next nref lref last post