Rearrange the variables to compare two pointers instead of two integers.
./signature.c:145:40: warning: comparison of integers of different signs: 'int' and 'u_int' (aka 'unsigned int') [-Wsign-compare]
$ cc --version
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032)
20140512
Target: i386-unknown-freebsd10.2
Thread model: posix
/* No. */
return (CANT_CHECK_SIGNATURE);
}
- if ((sig_ptr + sizeof(sig) - pptr) > plen) {
+ if (sig_ptr + sizeof(sig) > pptr + plen) {
/* No. */
return (CANT_CHECK_SIGNATURE);
}