summaryrefslogtreecommitdiffstats
path: root/libcrypt/crypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrypt/crypt.c')
-rw-r--r--libcrypt/crypt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrypt/crypt.c b/libcrypt/crypt.c
index 188a6a081..19f14d93e 100644
--- a/libcrypt/crypt.c
+++ b/libcrypt/crypt.c
@@ -12,6 +12,8 @@
#include <errno.h>
#include "libcrypt.h"
+#define ARRAY_SIZE(v) (sizeof(v) / sizeof((v)[0]))
+
typedef char *(*crypt_impl_f)(const unsigned char *pw, const unsigned char *salt);
static const struct {