examples: use return according to code style

This commit is contained in:
Daniel Stenberg 2025-01-13 08:24:00 +01:00
parent 3833e5fea1
commit eb652da1b2
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 2 additions and 2 deletions

View File

@ -424,7 +424,7 @@ static int init_fifo(GlobalInfo *g)
fprintf(MSG_OUT, "Now, pipe some URL's into > %s\n", fifo);
ev_io_init(&g->fifo_event, fifo_cb, sockfd, EV_READ);
ev_io_start(g->loop, &g->fifo_event);
return (0);
return 0;
}
int main(int argc, char **argv)

View File

@ -422,7 +422,7 @@ static int init_fifo(GlobalInfo *g)
event_assign(&g->fifo_event, g->evbase, sockfd, EV_READ|EV_PERSIST,
fifo_cb, g);
event_add(&g->fifo_event, NULL);
return (0);
return 0;
}
static void clean_fifo(GlobalInfo *g)