flexelinting

parent ac4cf509
......@@ -99,7 +99,7 @@ VFP_Extend(const struct vfp_ctx *vc, ssize_t sz, enum vfp_status flg)
{
CHECK_OBJ_NOTNULL(vc, VFP_CTX_MAGIC);
ObjExtend(vc->wrk, vc->oc, sz, flg == VFP_END);
ObjExtend(vc->wrk, vc->oc, sz, flg == VFP_END ? 1 : 0);
}
/**********************************************************************
......
......@@ -124,7 +124,8 @@ vrb_pull(struct req *req, ssize_t maxsize, objiterate_f *func, void *priv)
if (r)
break;
} else {
ObjExtend(req->wrk, req->body_oc, l, vfps == VFP_END);
ObjExtend(req->wrk, req->body_oc, l,
vfps == VFP_END ? 1 : 0);
}
}
......
......@@ -486,7 +486,7 @@ vsl_cursor_mmap(struct VSL_data *vsl, int fd)
if ((st->st_mode & S_IFMT) != S_IFREG)
return (MAP_FAILED);
assert(st->st_size >= sizeof VSL_FILE_ID);
assert(st->st_size >= (off_t)(sizeof VSL_FILE_ID));
p = mmap(NULL, st->st_size, PROT_READ, MAP_PRIVATE, fd, 0);
if (p == MAP_FAILED) {
vsl_diag(vsl, "Cannot mmap: %s", strerror(errno));
......
......@@ -174,7 +174,7 @@ static const struct vdp xyzzy_vdp_rot13 = {
* yet that would cross the API
*/
void * end_marker = &end_marker;
static void * end_marker = &end_marker;
static int v_matchproto_(vdp_bytes_f)
xyzzy_pedantic_bytes(struct vdp_ctx *vdx, enum vdp_action act, void **priv,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment