Commit 606ff7da authored by Federico G. Schwindt's avatar Federico G. Schwindt

Whitespace and style OCD

parent cffcca55
......@@ -277,8 +277,7 @@ barrier_cond_sync(struct barrier *b, struct vtclog *vl)
if (++b->waiters == b->expected) {
vtc_log(vl, 4, "Barrier(%s) wake %u", b->name, b->expected);
AZ(pthread_cond_broadcast(&b->cond));
}
else {
} else {
vtc_log(vl, 4, "Barrier(%s) wait %u of %u",
b->name, b->waiters, b->expected);
AZ(pthread_cond_wait(&b->cond, &b->mtx));
......
......@@ -1901,8 +1901,7 @@ http_process(struct vtclog *vl, const char *spec, int sock, int *sfd,
VTCP_hisname(sock, hp->rem_ip, VTCP_ADDRBUFSIZE, hp->rem_port,
VTCP_PORTBUFSIZE);
hp->rem_path = NULL;
}
else {
} else {
strcpy(hp->rem_ip, "0.0.0.0");
strcpy(hp->rem_port, "0");
hp->rem_path = strdup(addr);
......
......@@ -730,9 +730,8 @@ process_kill(struct process *p, const char *sig)
if (kill(-pid, j) < 0)
vtc_fatal(p->vl, "Failed to send signal %d (%s)",
j, strerror(errno));
else {
else
vtc_log(p->vl, 4, "Sent signal %d", j);
}
}
/**********************************************************************
......
......@@ -283,7 +283,7 @@ Emit_UDS_Path(struct vcc *tl, const struct token *t_path, const char *errid)
vcc_ErrWhere(tl, t_path);
return;
}
if (! S_ISSOCK(st.st_mode)) {
if (!S_ISSOCK(st.st_mode)) {
VSB_printf(tl->sb, "%s: Not a socket:\n", errid);
vcc_ErrWhere(tl, t_path);
return;
......
......@@ -200,7 +200,7 @@ dyn_uds_init(VRT_CTX, struct xyzzy_debug_dyn_uds *uds, VCL_STRING path)
VRT_fail(ctx, "Cannot stat path %s: %s", path, strerror(errno));
return (-1);
}
if (! S_ISSOCK(st.st_mode)) {
if (!S_ISSOCK(st.st_mode)) {
VRT_fail(ctx, "%s is not a socket", path);
return (-1);
}
......
......@@ -95,7 +95,7 @@ get_ids(int fd, uid_t *uid, gid_t *gid)
priv_set_t *priv = NULL;
errno = 0;
if (! priv_ineffect(PRIV_PROC_INFO)) {
if (!priv_ineffect(PRIV_PROC_INFO)) {
priv = priv_proc_info;
if (setppriv(PRIV_ON, PRIV_EFFECTIVE, priv))
return (CREDS_FAIL);
......
......@@ -94,7 +94,7 @@ vmod_##func(VRT_CTX) \
} \
\
sp = get_sp(ctx); \
if (! sp->listen_sock->uds) { \
if (!sp->listen_sock->uds) { \
ERRNOTUDS(ctx); \
return (-1); \
} \
......
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