projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc86a51
)
Simplify tcpip_get a bit YAZ-831
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 13 Mar 2015 10:12:29 +0000
(11:12 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 13 Mar 2015 10:12:29 +0000
(11:12 +0100)
src/tcpip.c
patch
|
blob
|
history
diff --git
a/src/tcpip.c
b/src/tcpip.c
index
896eaf3
..
e0165b1
100644
(file)
--- a/
src/tcpip.c
+++ b/
src/tcpip.c
@@
-1185,7
+1185,6
@@
int tcpip_get(COMSTACK h, char **buf, int *bufsize)
break;
return -1;
}
- hasread += res;
}
else
#endif
@@
-1238,9
+1237,9
@@
int tcpip_get(COMSTACK h, char **buf, int *bufsize)
}
else if (!res)
return hasread;
- hasread += res;
#endif
}
+ hasread += res;
if (hasread > h->max_recv_bytes)
{
h->cerrno = CSBUFSIZE;