assert(o->entered != 0 && !isnan(o->entered));
oe->lru_stamp = o->entered;
- update_object_when(o);
+ (void)update_object_when(o);
Lck_Lock(&exp_mtx);
binheap_insert(exp_heap, oe);
assert(oe->timer_idx != BINHEAP_NOIDX);
WSL(&ww, SLT_Debug, 0, "Attempt Prefetch %u",
o->xid);
}
- update_object_when(o);
+ (void)update_object_when(o);
Lck_Lock(&exp_mtx);
binheap_insert(exp_heap, oe);
assert(oe->timer_idx != BINHEAP_NOIDX);
TCP_blocking(vc->fd); /* XXX: we should timeout instead */
WRW_Reserve(w, &vc->fd);
- http_Write(w, hp, 0); /* XXX: stats ? */
+ (void)http_Write(w, hp, 0); /* XXX: stats ? */
/* Deal with any message-body the request might have */
i = FetchReqBody(sp);
HSH_Lookup(struct sess *sp)
{
struct worker *w;
- struct http *h;
struct objhead *oh;
struct object *o, *busy_o, *grace_o;
CHECK_OBJ_NOTNULL(sp->http, HTTP_MAGIC);
AN(hash);
w = sp->wrk;
- h = sp->http;
HSH_Prealloc(sp);
SHA256_Final(sp->wrk->nobjhead->digest, sp->wrk->sha256ctx);
if (http_IsHdr(&hp->hd[u], hdr))
continue;
if (v != u) {
- memcpy(&hp->hd[v], &hp->hd[u], sizeof hp->hd[v]);
- memcpy(&hp->hdf[v], &hp->hdf[u], sizeof hp->hdf[v]);
+ memcpy(&hp->hd[v], &hp->hd[u], sizeof *hp->hd);
+ memcpy(&hp->hdf[v], &hp->hdf[u], sizeof *hp->hdf);
}
v++;
}
-e459 // unlocked access from func-ptr
-e454 // mutex not released (...ReleaseLocked)
-e457 // unprotected access
+-e777 // float equality comparison
-esym(458, lbv_assert) // unlocked access
-esym(458, params) // unlocked access
-emacro(702, WEXITSTATUS) // signed shift right
-efunc(525, VCC_Return_Name) // Negative indent
+
+
// -header(../../config.h)
// Fix strchr() semtics, it can only return NULL if arg2 != 0
int mgt_cli_askchild(unsigned *status, char **resp, const char *fmt, ...);
void mgt_cli_start_child(int fdi, int fdo);
void mgt_cli_stop_child(void);
-int mgt_cli_telnet(int dflag, const char *T_arg);
+void mgt_cli_telnet(int dflag, const char *T_arg);
/* mgt_param.c */
void MCF_ParamSync(void);
return (0);
}
-int
+void
mgt_cli_telnet(int dflag, const char *T_arg)
{
struct vss_addr **ta;
}
free(addr);
free(port);
- return (0);
}
static char *
mgt_VccCompile(struct vsb **sb, const char *b, int C_flag)
{
- char *vf = NULL;
+ char *vf;
*sb = vsb_newauto();
XXXAN(*sb);
* derive a relative time from the two headers.
* (the negative ttl case is caught above)
*/
- ttl = (h_expires - h_date);
+ ttl = (int)(h_expires - h_date);
} while (0);