summaryrefslogtreecommitdiff
path: root/test-gensalt.c
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2017-10-02 12:30:28 -0400
committerZack Weinberg <zackw@panix.com>2017-10-02 12:30:28 -0400
commita2d558581c3cd9b3d62f916825405cebd708f268 (patch)
tree15c0dee040ce81a53e4379d8bd64beef6362cf32 /test-gensalt.c
parent2c89746d96163ad290663530423d33748eb10e82 (diff)
downloadlibxcrypt-a2d558581c3cd9b3d62f916825405cebd708f268.tar.gz
libxcrypt-a2d558581c3cd9b3d62f916825405cebd708f268.tar.bz2
libxcrypt-a2d558581c3cd9b3d62f916825405cebd708f268.zip
Grab bag of header-related cleanups.
Stop including crypt-symbols.h implicitly. It's a little too much _spukhafte Fernwirkung_ for my taste, and it makes Emacs have trouble parsing the compiler's error messages. Also, rename crypt-symbols.h to crypt-port.h as this is more consistent with its current function, and have it include stdbool.h, stddef.h, and stdint.h for everyone; have configure bomb out if the C99 headers we use are not available; and normalize the order of inclusion in all files. The value of CPPFLAGS passed to test scripts now includes every last one of Automake's CPPFLAGS-fragment variables.
Diffstat (limited to 'test-gensalt.c')
-rw-r--r--test-gensalt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test-gensalt.c b/test-gensalt.c
index ed01e72..fb9bdba 100644
--- a/test-gensalt.c
+++ b/test-gensalt.c
@@ -1,8 +1,9 @@
+#include "crypt-port.h"
#include "crypt-base.h"
-#include <string.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
static const char *const entropy[] = {
"\x58\x35\xcd\x26\x03\xab\x2c\x14\x92\x13\x1e\x59\xb0\xbc\xfe\xd5",