s6

Mirror/fork of https://skarnet.org/software/s6/
git clone https://ccx.te2000.cz/git/s6
Log | Files | Refs | README | LICENSE

commit 9cc5f3b25284ddca50ad1a19a83b1d1153dc9f5d
parent 921e08985b67eedc07e5626ade3197b870c18cc1
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Thu, 11 Jun 2015 07:54:20 +0000

 Remove a comparison to shut gcc up

Diffstat:
Msrc/libs6/s6_fdholder_getdump.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libs6/s6_fdholder_getdump.c b/src/libs6/s6_fdholder_getdump.c @@ -45,7 +45,7 @@ int s6_fdholder_getdump (s6_fdholder_t *a, genalloc *g, tain_t const *deadline, tain_unpack(m.s, &tab[i].limit) ; m.s += TAIN_PACK ; m.len -= TAIN_PACK + 1 ; thislen = *m.s++ ; - if (thislen > m.len - 1 || thislen > S6_FDHOLDER_ID_SIZE || m.s[thislen]) goto droperr ; + if (thislen > m.len - 1 || m.s[thislen]) goto droperr ; byte_copy(tab[i].id, thislen, m.s) ; byte_zero(tab[i].id + thislen, S6_FDHOLDER_ID_SIZE + 1 - thislen) ; m.s += (unsigned int)thislen + 1 ; m.len -= (unsigned int)thislen + 1 ;