summaryrefslogtreecommitdiff
path: root/src/libstddjb/ip6_fmt.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-02-17 22:30:53 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-02-17 22:30:53 +0000
commitfdffefb8032922ce7ffe4c00816072a8ff2148fc (patch)
treebc7313151a429c45d8bab8ad8b9dd32f4e51335f /src/libstddjb/ip6_fmt.c
parenta896ca2a8c617e5e00ffd5fc9e69331ad754e5b3 (diff)
downloadskalibs-fdffefb8032922ce7ffe4c00816072a8ff2148fc.tar.xz
More types changes
New disize Add size_t to the autotypes list Delete redundant and replace-libc files dev_t/ino_t pass Big size_t pass More things missing, still not operational yet
Diffstat (limited to 'src/libstddjb/ip6_fmt.c')
-rw-r--r--src/libstddjb/ip6_fmt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstddjb/ip6_fmt.c b/src/libstddjb/ip6_fmt.c
index eb6acc0..8d56a90 100644
--- a/src/libstddjb/ip6_fmt.c
+++ b/src/libstddjb/ip6_fmt.c
@@ -8,7 +8,7 @@
static inline size_t xfmt16 (char *s, char const *key)
{
- register size_t j = 0 ;
+ size_t j = 0 ;
j += px((unsigned char)key[0] >> 4) ;
j += px((unsigned char)key[0] & 15) ;
j += px((unsigned char)key[1] >> 4) ;
@@ -21,8 +21,8 @@ static inline unsigned int find_colcol (char const *key, unsigned int *pos)
diuint z[4] = { DIUINT_ZERO, DIUINT_ZERO, DIUINT_ZERO, DIUINT_ZERO } ;
unsigned int j = 0 ;
unsigned int max = 0 ;
- register int iszero = 0 ;
- register unsigned int i = 0 ;
+ int iszero = 0 ;
+ unsigned int i = 0 ;
for ( ; i < 8 ; i++)
{
if (key[i<<1] || key[(i<<1)+1])
@@ -59,9 +59,9 @@ static inline unsigned int find_colcol (char const *key, unsigned int *pos)
size_t ip6_fmt (char *s, char const *ip6)
{
size_t w = 0 ;
- register unsigned int i = 0 ;
unsigned int pos = 8 ;
unsigned int len = find_colcol(ip6, &pos) ;
+ unsigned int i = 0 ;
for (; i < 8 ; i++)
{
if (i == pos)