summaryrefslogtreecommitdiffstats
path: root/usr.bin/localedef
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-08-08 22:01:54 +0000
committerbapt <bapt@FreeBSD.org>2015-08-08 22:01:54 +0000
commit64b5feb0c7cd556c7535c49e403be61ae25fc9f4 (patch)
tree3a898330dba9bf1cdacbbfc3988676715c08a300 /usr.bin/localedef
parent2a251e9d730bc17388d7507f3eebda5e8ee03ad2 (diff)
downloadFreeBSD-src-64b5feb0c7cd556c7535c49e403be61ae25fc9f4.zip
FreeBSD-src-64b5feb0c7cd556c7535c49e403be61ae25fc9f4.tar.gz
Prefer static generation of functions
Diffstat (limited to 'usr.bin/localedef')
-rw-r--r--usr.bin/localedef/ctype.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/localedef/ctype.c b/usr.bin/localedef/ctype.c
index 17f18c4..4132a77 100644
--- a/usr.bin/localedef/ctype.c
+++ b/usr.bin/localedef/ctype.c
@@ -80,8 +80,7 @@ typedef struct ctype_node {
} ctype_node_t;
RB_HEAD(ctypes, ctype_node) ctypes;
-RB_PROTOTYPE(ctypes, ctype_node, entry, ctype_compare);
-RB_GENERATE(ctypes, ctype_node, entry, ctype_compare);
+RB_GENERATE_STATIC(ctypes, ctype_node, entry, ctype_compare);
static int
ctype_compare(const void *n1, const void *n2)
OpenPOWER on IntegriCloud