summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-01-04 14:09:28 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-01-04 14:09:28 +0000
commit3605272b0a7a255f8cc252e76c45d982fa7ae9f6 (patch)
tree41777a659f07d261525c30df57238bb433d75694
parent5c070be20add59873701368a2033d7d993a416d6 (diff)
downloadmandoc-3605272b0a7a255f8cc252e76c45d982fa7ae9f6.tar.gz
Use C99 uint32_t, not BSD-style u_int32_t.
Needed for Solaris 10 as reported by Matthias Scheler.
-rw-r--r--compat_ohash.c4
-rw-r--r--compat_ohash.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/compat_ohash.c b/compat_ohash.c
index 802f458d..17add257 100644
--- a/compat_ohash.c
+++ b/compat_ohash.c
@@ -17,7 +17,7 @@ int dummy;
#include "compat_ohash.h"
struct _ohash_record {
- u_int32_t hv;
+ uint32_t hv;
const char *p;
};
@@ -328,7 +328,7 @@ ohash_qlookup(struct ohash *h, const char *s)
unsigned int
ohash_qlookupi(struct ohash *h, const char *s, const char **e)
{
- u_int32_t hv;
+ uint32_t hv;
hv = ohash_interval(s, e);
return ohash_lookup_interval(h, s, *e, hv);
diff --git a/compat_ohash.h b/compat_ohash.h
index 85cf9114..9099adc5 100644
--- a/compat_ohash.h
+++ b/compat_ohash.h
@@ -65,7 +65,7 @@ void *ohash_next(struct ohash *, unsigned int *);
unsigned int ohash_entries(struct ohash *);
void *ohash_create_entry(struct ohash_info *, const char *, const char **);
-u_int32_t ohash_interval(const char *, const char **);
+uint32_t ohash_interval(const char *, const char **);
unsigned int ohash_qlookupi(struct ohash *, const char *, const char **);
unsigned int ohash_qlookup(struct ohash *, const char *);