In places where we're doing pointer arithmetic, we must cast to (char
*), because pointer arithmetic on a void * isn't permitted by the C
standard. Sadly gcc lets us get away with it 'for convenience'.
Reinstate the necessary casts.
Reviewed-on: http://gerrit.openafs.org/707
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
return (1);
}
if (status < len)
- memset(buf + status, 0, len - status);
+ memset((char *)buf + status, 0, len - status);
return (0);
}
des_cbc_encrypt(in, out, insz, s, &ivec, 0);
memcpy(cksum, (char *)out + CONFOUNDERSZ, cksumsz);
- memset(out + CONFOUNDERSZ, 0, cksumsz);
+ memset((char *)out + CONFOUNDERSZ, 0, cksumsz);
if (cksum_func)
ret = (*cksum_func) (out, insz, cksum, cksumsz, key);