summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2019-10-09 09:06:35 +1100
committerDamien Miller <djm@mindrot.org>2019-10-09 09:06:35 +1100
commitcfc1897a2002ec6c4dc879b24e8b3153c87ea2cf (patch)
treeebeec2716f65dbb23cf0db174b2b82833c0b8fc2
parent13b3369830a43b89a503915216a23816d1b25744 (diff)
wrap stdint.h include in HAVE_STDINT_H
make the indenting a little more consistent too.. Fixes Solaris 2.6; reported by Tom G. Christensen
-rw-r--r--channels.c2
-rw-r--r--monitor.c2
-rw-r--r--scp.c2
-rw-r--r--ssh-keygen.c4
-rw-r--r--sshbuf-getput-basic.c4
-rw-r--r--sshbuf-misc.c2
-rw-r--r--xmalloc.c2
-rw-r--r--xmss_commons.c2
-rw-r--r--xmss_fast.c2
-rw-r--r--xmss_hash.c2
-rw-r--r--xmss_hash_address.c2
-rw-r--r--xmss_wots.c2
12 files changed, 16 insertions, 12 deletions
diff --git a/channels.c b/channels.c
index 47521d3e7..0f45aee4e 100644
--- a/channels.c
+++ b/channels.c
@@ -59,7 +59,7 @@
59#include <netdb.h> 59#include <netdb.h>
60#include <stdarg.h> 60#include <stdarg.h>
61#ifdef HAVE_STDINT_H 61#ifdef HAVE_STDINT_H
62 #include <stdint.h> 62# include <stdint.h>
63#endif 63#endif
64#include <stdio.h> 64#include <stdio.h>
65#include <stdlib.h> 65#include <stdlib.h>
diff --git a/monitor.c b/monitor.c
index 96d10913c..5076a74ff 100644
--- a/monitor.c
+++ b/monitor.c
@@ -40,7 +40,7 @@
40#include <pwd.h> 40#include <pwd.h>
41#include <signal.h> 41#include <signal.h>
42#ifdef HAVE_STDINT_H 42#ifdef HAVE_STDINT_H
43#include <stdint.h> 43# include <stdint.h>
44#endif 44#endif
45#include <stdlib.h> 45#include <stdlib.h>
46#include <string.h> 46#include <string.h>
diff --git a/scp.c b/scp.c
index 84a76d0b8..0348d0673 100644
--- a/scp.c
+++ b/scp.c
@@ -101,7 +101,7 @@
101#include <signal.h> 101#include <signal.h>
102#include <stdarg.h> 102#include <stdarg.h>
103#ifdef HAVE_STDINT_H 103#ifdef HAVE_STDINT_H
104#include <stdint.h> 104# include <stdint.h>
105#endif 105#endif
106#include <stdio.h> 106#include <stdio.h>
107#include <stdlib.h> 107#include <stdlib.h>
diff --git a/ssh-keygen.c b/ssh-keygen.c
index 85fb4424f..8c829cad6 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -24,7 +24,9 @@
24#include "openbsd-compat/openssl-compat.h" 24#include "openbsd-compat/openssl-compat.h"
25#endif 25#endif
26 26
27#include <stdint.h> 27#ifdef HAVE_STDINT_H
28# include <stdint.h>
29#endif
28#include <errno.h> 30#include <errno.h>
29#include <fcntl.h> 31#include <fcntl.h>
30#include <netdb.h> 32#include <netdb.h>
diff --git a/sshbuf-getput-basic.c b/sshbuf-getput-basic.c
index ffa20a02c..d401a7265 100644
--- a/sshbuf-getput-basic.c
+++ b/sshbuf-getput-basic.c
@@ -24,7 +24,9 @@
24#include <stdlib.h> 24#include <stdlib.h>
25#include <stdio.h> 25#include <stdio.h>
26#include <string.h> 26#include <string.h>
27#include <stdint.h> 27#ifdef HAVE_STDINT_H
28# include <stdint.h>
29#endif
28 30
29#include "ssherr.h" 31#include "ssherr.h"
30#include "sshbuf.h" 32#include "sshbuf.h"
diff --git a/sshbuf-misc.c b/sshbuf-misc.c
index 65987e251..a73f008b0 100644
--- a/sshbuf-misc.c
+++ b/sshbuf-misc.c
@@ -23,7 +23,7 @@
23#include <errno.h> 23#include <errno.h>
24#include <stdlib.h> 24#include <stdlib.h>
25#ifdef HAVE_STDINT_H 25#ifdef HAVE_STDINT_H
26#include <stdint.h> 26# include <stdint.h>
27#endif 27#endif
28#include <stdio.h> 28#include <stdio.h>
29#include <limits.h> 29#include <limits.h>
diff --git a/xmalloc.c b/xmalloc.c
index dc22757b0..9cd0127dd 100644
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -17,7 +17,7 @@
17 17
18#include <stdarg.h> 18#include <stdarg.h>
19#ifdef HAVE_STDINT_H 19#ifdef HAVE_STDINT_H
20#include <stdint.h> 20# include <stdint.h>
21#endif 21#endif
22#include <stdio.h> 22#include <stdio.h>
23#include <stdlib.h> 23#include <stdlib.h>
diff --git a/xmss_commons.c b/xmss_commons.c
index 59486aead..8d6b80b6e 100644
--- a/xmss_commons.c
+++ b/xmss_commons.c
@@ -13,7 +13,7 @@ Public domain.
13#include <stdlib.h> 13#include <stdlib.h>
14#include <stdio.h> 14#include <stdio.h>
15#ifdef HAVE_STDINT_H 15#ifdef HAVE_STDINT_H
16#include <stdint.h> 16# include <stdint.h>
17#endif 17#endif
18 18
19void to_byte(unsigned char *out, unsigned long long in, uint32_t bytes) 19void to_byte(unsigned char *out, unsigned long long in, uint32_t bytes)
diff --git a/xmss_fast.c b/xmss_fast.c
index e37447f60..421b39a37 100644
--- a/xmss_fast.c
+++ b/xmss_fast.c
@@ -12,7 +12,7 @@ Public domain.
12#include <stdlib.h> 12#include <stdlib.h>
13#include <string.h> 13#include <string.h>
14#ifdef HAVE_STDINT_H 14#ifdef HAVE_STDINT_H
15#include <stdint.h> 15# include <stdint.h>
16#endif 16#endif
17 17
18#include "xmss_fast.h" 18#include "xmss_fast.h"
diff --git a/xmss_hash.c b/xmss_hash.c
index b9eee7cff..50a577943 100644
--- a/xmss_hash.c
+++ b/xmss_hash.c
@@ -15,7 +15,7 @@ Public domain.
15 15
16#include <stddef.h> 16#include <stddef.h>
17#ifdef HAVE_STDINT_H 17#ifdef HAVE_STDINT_H
18#include <stdint.h> 18# include <stdint.h>
19#endif 19#endif
20#include <stdio.h> 20#include <stdio.h>
21#include <string.h> 21#include <string.h>
diff --git a/xmss_hash_address.c b/xmss_hash_address.c
index c6c1347e9..2702c4562 100644
--- a/xmss_hash_address.c
+++ b/xmss_hash_address.c
@@ -9,7 +9,7 @@ Public domain.
9#ifdef WITH_XMSS 9#ifdef WITH_XMSS
10 10
11#ifdef HAVE_STDINT_H 11#ifdef HAVE_STDINT_H
12#include <stdint.h> 12# include <stdint.h>
13#endif 13#endif
14#include "xmss_hash_address.h" /* prototypes */ 14#include "xmss_hash_address.h" /* prototypes */
15 15
diff --git a/xmss_wots.c b/xmss_wots.c
index ed904cd75..993e661f6 100644
--- a/xmss_wots.c
+++ b/xmss_wots.c
@@ -11,7 +11,7 @@ Public domain.
11 11
12#include <stdlib.h> 12#include <stdlib.h>
13#ifdef HAVE_STDINT_H 13#ifdef HAVE_STDINT_H
14#include <stdint.h> 14# include <stdint.h>
15#endif 15#endif
16#include <limits.h> 16#include <limits.h>
17#include "xmss_commons.h" 17#include "xmss_commons.h"