diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-08 11:10:07 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-08 11:10:07 +0000 |
commit | e5d4b64f13683c30ccdd333260febd57d2cdc2d7 (patch) | |
tree | 98ddb6b9b1b1812ae1d8ec2f418016b56e4ffcfd /src/libexecline/el_transform.c | |
parent | 5d0fa4b94d993a7a292554c7cce61be355e65b75 (diff) | |
download | execline-e5d4b64f13683c30ccdd333260febd57d2cdc2d7.tar.xz |
Adapt to skalibs 2.5.0.0 API
Diffstat (limited to 'src/libexecline/el_transform.c')
-rw-r--r-- | src/libexecline/el_transform.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libexecline/el_transform.c b/src/libexecline/el_transform.c index 210cbdf..6048d1e 100644 --- a/src/libexecline/el_transform.c +++ b/src/libexecline/el_transform.c @@ -9,8 +9,8 @@ static void el_crunch (stralloc *sa, size_t base, char const *delim) { - register size_t i = base, j = base ; - register int crunching = 0 ; + size_t i = base, j = base ; + int crunching = 0 ; for (; i < sa->len ; i++) { if (!crunching) sa->s[j++] = sa->s[i] ; @@ -27,7 +27,7 @@ static void el_crunch (stralloc *sa, size_t base, char const *delim) static int el_split (stralloc *sa, size_t base, eltransforminfo_t const *si, int chomped) { int n = 0 ; - register size_t i = base ; + size_t i = base ; for (; i < sa->len ; i++) if (si->delim[str_chr(si->delim, sa->s[i])]) { @@ -51,7 +51,7 @@ static int el_splitnetstring (stralloc *sa, size_t base) int n = 0 ; while (i < sa->len) { - register ssize_t r = netstring_decode(&satmp, sa->s + i, sa->len - i) ; + ssize_t r = netstring_decode(&satmp, sa->s + i, sa->len - i) ; if (r < 0) goto err ; if (!stralloc_0(&satmp)) goto err ; i += r ; n++ ; |