diff options
Diffstat (limited to 'src/libs6dns/s6dns_domain_encode.c')
-rw-r--r-- | src/libs6dns/s6dns_domain_encode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libs6dns/s6dns_domain_encode.c b/src/libs6dns/s6dns_domain_encode.c index 61a790d..a551d23 100644 --- a/src/libs6dns/s6dns_domain_encode.c +++ b/src/libs6dns/s6dns_domain_encode.c @@ -6,12 +6,12 @@ int s6dns_domain_encode (s6dns_domain_t *d) { - register char *s = d->s ; - register unsigned int len = d->len ; + char *s = d->s ; + unsigned int len = d->len ; if (!d->len || (*s != '.')) return (errno = EINVAL, 0) ; while (len > 1) { - register unsigned int n = byte_chr(s + 1, len - 1, '.') ; + unsigned int n = byte_chr(s + 1, len - 1, '.') ; if (n > 63) return (errno = EINVAL, 0) ; *s = n++ ; s += n ; len -= n ; } |