From a5079576ae9007fb1ca7ebcc911b5fb035cd2d06 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 22 Feb 2017 10:03:15 +0000 Subject: Types change: switch libdatastruct to uint32_t Still needs to be reviewed. --- src/libdatastruct/avlnode_extreme.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/libdatastruct/avlnode_extreme.c') diff --git a/src/libdatastruct/avlnode_extreme.c b/src/libdatastruct/avlnode_extreme.c index 42d991d..cfdf98c 100644 --- a/src/libdatastruct/avlnode_extreme.c +++ b/src/libdatastruct/avlnode_extreme.c @@ -1,11 +1,12 @@ /* ISC license. */ +#include #include #include -int avlnode_extreme (avlnode const *s, unsigned int max, unsigned int r, int h, unsigned int *k) +int avlnode_extreme (avlnode const *s, uint32_t max, uint32_t r, int h, uint32_t *k) { - register unsigned int i = avlnode_extremenode(s, max, r, h) ; + uint32_t i = avlnode_extremenode(s, max, r, h) ; if (i >= max) return (errno = ESRCH, 0) ; *k = s[i].data ; return 1 ; -- cgit v1.2.3