Commit 0bb94ca7 authored by Federico G. Schwindt's avatar Federico G. Schwindt

Some style(9)

parent df4ec11d
......@@ -454,7 +454,8 @@ mgt_launch_child(struct cli *cli)
*/
static int
kill_child(void) {
kill_child(void)
{
int i, error;
VJ_master(JAIL_MASTER_KILL);
......
......@@ -174,7 +174,8 @@ static struct cli_proto cli_askchild[] = {
*/
int
mgt_cli_askchild(unsigned *status, char **resp, const char *fmt, ...) {
mgt_cli_askchild(unsigned *status, char **resp, const char *fmt, ...)
{
int i, j;
va_list ap;
unsigned u;
......
......@@ -262,7 +262,8 @@ vjs_init(char **args)
/* for priv_delset() and priv_addset() */
static inline int
priv_setop_check(int a) {
priv_setop_check(int a)
{
if (a == 0)
return (1);
if (errno == EINVAL)
......@@ -280,7 +281,8 @@ priv_setop_check(int a) {
/* for setppriv */
static inline int
setppriv_check(int a) {
setppriv_check(int a)
{
if (a == 0)
return (1);
if (errno == EPERM)
......
......@@ -107,7 +107,8 @@ vws_del(struct vws *vws, int fd)
}
static inline void
vws_port_ev(struct vws *vws, struct waiter *w, port_event_t *ev, double now) {
vws_port_ev(struct vws *vws, struct waiter *w, port_event_t *ev, double now)
{
struct waited *wp;
if(ev->portev_source == PORT_SOURCE_USER) {
CAST_OBJ_NOTNULL(wp, ev->portev_user, WAITED_MAGIC);
......
......@@ -559,7 +559,8 @@ parse_prio(struct stream *s, struct frame *f)
}
static void
parse_rst(const struct stream *s, struct frame *f) {
parse_rst(const struct stream *s, struct frame *f)
{
struct http *hp;
uint32_t err;
const char *buf;
......@@ -2059,7 +2060,8 @@ cmd_txwinup(CMD_ARGS)
}
static struct frame *
rxstuff(struct stream *s) {
rxstuff(struct stream *s)
{
struct frame *f;
CHECK_OBJ_NOTNULL(s, STREAM_MAGIC);
......@@ -2284,7 +2286,8 @@ cmd_rxreqsp(CMD_ARGS)
*
*/
static void
cmd_rxpush(CMD_ARGS) {
cmd_rxpush(CMD_ARGS)
{
struct stream *s;
struct frame *f = NULL;
char *p;
......@@ -2374,7 +2377,8 @@ RXFUNC(winup, WINDOW_UPDATE)
* Receive a frame, any frame.
*/
static void
cmd_rxframe(CMD_ARGS) {
cmd_rxframe(CMD_ARGS)
{
struct stream *s;
(void)cmd;
(void)vl;
......
......@@ -44,7 +44,8 @@
#define VBITMAP_BIT(n) (1U << ((n) % VBITMAP_WORD))
static inline unsigned
vbit_rndup(unsigned bit, unsigned to) {
vbit_rndup(unsigned bit, unsigned to)
{
bit += to - 1;
bit -= (bit % to);
......
......@@ -104,7 +104,8 @@ VCL_INT __match_proto__(td_directors_shard_key)
VCL_VOID __match_proto__(td_directors_set_warmup)
vmod_shard_set_warmup(VRT_CTX, struct vmod_directors_shard *vshard,
VCL_REAL probability) {
VCL_REAL probability)
{
CHECK_OBJ_NOTNULL(vshard, VMOD_SHARD_SHARD_MAGIC);
if (probability < 0 || probability >= 1) {
shard_err(ctx, vshard->shardd,
......
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