summaryrefslogtreecommitdiff
path: root/src/libstddjb/netstring_decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/netstring_decode.c')
-rw-r--r--src/libstddjb/netstring_decode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstddjb/netstring_decode.c b/src/libstddjb/netstring_decode.c
index d129ea8..68c68e1 100644
--- a/src/libstddjb/netstring_decode.c
+++ b/src/libstddjb/netstring_decode.c
@@ -3,13 +3,13 @@
#include <sys/types.h>
#include <errno.h>
#include <skalibs/uint64.h>
-#include <skalibs/netstring.h>
#include <skalibs/stralloc.h>
+#include <skalibs/netstring.h>
ssize_t netstring_decode (stralloc *sa, char const *s, size_t len)
{
uint64_t nlen ;
- register size_t pos ;
+ size_t pos ;
if (!len) return 0 ;
pos = uint64_scan(s, &nlen) ;
if (pos >= len) return (errno = EINVAL, -1) ;