diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-11 16:09:55 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-11 16:09:55 +0000 |
commit | 5ad27a3dc4b957191e2e657d41656810138ba789 (patch) | |
tree | 07e7e00ab43b74d6a3fdff9ad80e93882921adfa /src/libs6dns/s6dns_domain_encode.c | |
parent | f417b72c9489cd7c20b94eb8904a8911b7f6fd15 (diff) | |
download | s6-dns-5ad27a3dc4b957191e2e657d41656810138ba789.tar.xz |
Adapt to skalibs-2.5.0.0
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 ; } |