]> diplodocus.org Git - nmh/blobdiff - h/mh.h
Use LEN() on string constants instead of strlen().
[nmh] / h / mh.h
diff --git a/h/mh.h b/h/mh.h
index 3c493a1d67dcd8d181ec4e6c8d89399b4992bf17..3c2fb061dbc3f2a91c4be13e679fdd56a68ae5d8 100644 (file)
--- a/h/mh.h
+++ b/h/mh.h
 #define NMH_BUFSIZ  (BUFSIZ>=8192 ? BUFSIZ : 8192)
 
 #ifndef FALSE
-#define FALSE 0
+#define FALSE false
 #endif
 #ifndef TRUE
-#define TRUE 1
+#define TRUE true
 #endif
 typedef unsigned char  boolean;  /* not int so we can pack in a structure */
 
@@ -43,6 +43,10 @@ typedef unsigned char  boolean;  /* not int so we can pack in a structure */
 #define NMH_UNUSED(i) i
 #endif
 
+/* LEN gives the strlen() of string constant s, excluding the
+ * terminating NUL. */
+#define LEN(s) (sizeof (s) - 1)
+
 /*
  * char array that keeps track of size in both bytes and characters
  * Usage note:
@@ -449,6 +453,7 @@ extern char *components;
 extern char *context;
 extern char *current;
 extern char *credentials_file;
+extern int credentials_no_perm_check;
 extern char *defaultfolder;
 extern char *digestcomps;
 extern char *distcomps;