Removed, or added use of, unused macros to prevent warnings from gcc -Wunused-macros.
authorDavid Levine <levinedl@acm.org>
Thu, 12 Jan 2012 04:33:45 +0000 (22:33 -0600)
committerDavid Levine <levinedl@acm.org>
Thu, 12 Jan 2012 04:33:45 +0000 (22:33 -0600)
sbr/mts.c
uip/msgchk.c
uip/slocal.c

index 71836e4..6e19bd1 100644 (file)
--- a/sbr/mts.c
+++ b/sbr/mts.c
@@ -20,9 +20,6 @@
 #include <sys/socket.h>
 #include <netdb.h>
 
-#define        NOTOK   (-1)
-#define        OK        0
-
 /*
  * static prototypes
  */
index c7f32f5..a958351 100644 (file)
@@ -65,6 +65,8 @@ static struct swit switches[] = {
 #define MAXVEC  51
 
 #define        NT_NONE 0x0
+#ifdef NT_NONE
+#endif /* Use NT_NONE to prevent warning from gcc -Wunused-macros. */
 #define        NT_MAIL 0x1
 #define        NT_NMAI 0x2
 #define        NT_ALL  (NT_MAIL | NT_NMAI)
index 44e5988..36a25f0 100644 (file)
@@ -44,6 +44,8 @@
  * harmless.
  */
 #define DB_DBM_HSEARCH 1
+#ifdef DB_DBM_HSEARCH
+#endif /* Use DB_DBM_HSEARCH to prevent warning from gcc -Wunused-macros. */
 #ifdef NDBM_HEADER
 #include NDBM_HEADER
 #endif