Clean up minor pieces of lint

This commit is contained in:
agc 2009-04-28 00:41:40 +00:00
parent 702f5adb30
commit 167587fd07
2 changed files with 3 additions and 3 deletions

View File

@ -467,7 +467,7 @@ limited_read_scalar(unsigned *dest, unsigned length,
unsigned n;
assert(length <= 4);
assert(/*CONSTCOND*/sizeof(*dest) >= sizeof(uint32_t));
assert(/*CONSTCOND*/sizeof(*dest) >= 4);
if (!limited_read(c, length, region, pinfo))
return 0;

View File

@ -2098,9 +2098,9 @@ mmap_reader(void *dest, size_t length, __ops_error_t **errors,
char *cmem = mem->mem;
int n;
(void)&errors;
n = MIN(length, (int)(mem->size - mem->offset));
OPS_USED(errors);
OPS_USED(cbinfo);
n = MIN(length, (int)(mem->size - mem->offset));
if (n > 0) {
(void) memcpy(dest, &cmem[(int)mem->offset], (unsigned)n);
mem->offset += n;