Skip to content

Commit cb3e823

Browse files
committed
Remove unused return value
1 parent 0bfe1e7 commit cb3e823

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/pxyconn.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,11 +1439,11 @@ pxy_bev_writecb_child(struct bufferevent *bev, void *arg)
14391439
}
14401440
}
14411441

1442-
static int NONNULL(1,3)
1442+
static void NONNULL(1,3)
14431443
pxy_bev_eventcb_postexec_logging_and_stats(struct bufferevent *bev, short events, pxy_conn_ctx_t *ctx)
14441444
{
14451445
if (ctx->term || ctx->enomem) {
1446-
return -1;
1446+
return;
14471447
}
14481448

14491449
if (events & BEV_EVENT_CONNECTED) {
@@ -1454,7 +1454,7 @@ pxy_bev_eventcb_postexec_logging_and_stats(struct bufferevent *bev, short events
14541454
pxy_log_connect_src(ctx);
14551455
} else if (ctx->connected) {
14561456
if (pxy_prepare_logging(ctx) == -1) {
1457-
return -1;
1457+
return;
14581458
}
14591459
// Doesn't log connect if proto is http, http proto does its own connect logging
14601460
pxy_log_connect_srvdst(ctx);
@@ -1476,7 +1476,6 @@ pxy_bev_eventcb_postexec_logging_and_stats(struct bufferevent *bev, short events
14761476
}
14771477
}
14781478
}
1479-
return 0;
14801479
}
14811480

14821481
/*

0 commit comments

Comments
 (0)