aboutsummaryrefslogtreecommitdiff
path: root/lib/sockmapstr.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2017-11-10 11:08:35 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2017-11-10 11:08:35 +0200
commit2f1214a79a6befb629466c3e81a993123733a2fe (patch)
treeacf5e1cc9289cf4b655aa873d0b01642090b1391 /lib/sockmapstr.c
parent3457c19206858d3e8155dcfc776df8818d05824b (diff)
downloadsmap-2f1214a79a6befb629466c3e81a993123733a2fe.tar.gz
smap-2f1214a79a6befb629466c3e81a993123733a2fe.tar.bz2
Placate cc warnings
Diffstat (limited to 'lib/sockmapstr.c')
-rw-r--r--lib/sockmapstr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sockmapstr.c b/lib/sockmapstr.c
index 1c0d749..7e188f2 100644
--- a/lib/sockmapstr.c
+++ b/lib/sockmapstr.c
@@ -227,7 +227,7 @@ read_payload_length(struct sockmap_input_stream *sp)
if (n == 0)
return EOF;
len += n;
- if (p = memchr(sp->nbuf, ':', len)) {
+ if ((p = memchr(sp->nbuf, ':', len))) {
sp->cp = p - sp->nbuf;
sp->nbuf[len] = 0;
sp->nlen = len;

Return to:

Send suggestions and report system problems to the System administrator.