summaryrefslogtreecommitdiff
path: root/lib/defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/defines.h')
-rw-r--r--lib/defines.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/defines.h b/lib/defines.h
index ee33aa0d..d01f691e 100644
--- a/lib/defines.h
+++ b/lib/defines.h
@@ -310,14 +310,6 @@ extern char *strerror ();
# define format_attr(type, index, check)
#endif
-/* ! Arguments evaluated twice ! */
-#ifndef MIN
-#define MIN(a,b) (((a) < (b)) ? (a) : (b))
-#endif
-#ifndef MAX
-#define MAX(x,y) (((x) > (y)) ? (x) : (y))
-#endif
-
/* Maximum length of usernames */
#ifdef HAVE_UTMPX_H
# include <utmpx.h>
@@ -335,6 +327,9 @@ extern char *strerror ();
# endif
#endif
+/* Maximum length of passwd entry */
+#define PASSWD_ENTRY_MAX_LENGTH 32768
+
#ifdef HAVE_SECURE_GETENV
# define shadow_getenv(name) secure_getenv(name)
# else