aboutsummaryrefslogtreecommitdiff
path: root/dpid/misc_new.c
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-07-28 16:35:51 +0200
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-08-07 16:50:43 +0200
commit4d51150ca0aae979718ac10030df85421b763cd1 (patch)
treea824a83feefca6695fbe1072b3d724290b07af1f /dpid/misc_new.c
parenta9950b3aca2a264e0ee1da1e2a29d3be11e6606c (diff)
Make Dillo C99 standard compliant
Reviewed-by: dogma
Diffstat (limited to 'dpid/misc_new.c')
-rw-r--r--dpid/misc_new.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/dpid/misc_new.c b/dpid/misc_new.c
index 94b4d320..b1355718 100644
--- a/dpid/misc_new.c
+++ b/dpid/misc_new.c
@@ -59,7 +59,7 @@ char *a_Misc_readtag(int sock)
{
char *tag, c;
size_t i;
- size_t taglen = 0, tagmem = 10;
+ size_t tagmem = 10;
ssize_t rdln = 1;
tag = NULL;
@@ -71,7 +71,6 @@ char *a_Misc_readtag(int sock)
tag = (char *) dRealloc(tag, tagmem + 1);
}
tag[i] = c;
- taglen += rdln;
if (c == '>') {
tag[i + 1] = '\0';
break;