# HG changeset patch # User Josef 'Jeff' Sipek # Date 1726840526 14400 # Fri Sep 20 09:55:26 2024 -0400 # Node ID e839f4b9952d2d0a7182c2bf23a896b439effdc3 # Parent b2faabe5e325f54b245248becfd5e1434e9cf3c6 socksvc: rename callback struct Signed-off-by: Josef 'Jeff' Sipek diff --git a/socksvc.c b/socksvc.c --- a/socksvc.c +++ b/socksvc.c @@ -59,7 +59,7 @@ int nfds; }; -struct socksvc { +struct cb { struct socksvc_stats stats; struct state *state; int fd; @@ -71,7 +71,7 @@ static void __attribute__((constructor)) init_socksvc_subsys(void) { socksvc_cache = mem_cache_create("socksvc-cache", - sizeof(struct socksvc), 0); + sizeof(struct cb), 0); ASSERT(!IS_ERR(socksvc_cache)); } @@ -195,7 +195,7 @@ static void wrap_taskq_callback(void *arg) { - struct socksvc *cb = arg; + struct cb *cb = arg; cb->stats.dequeued_time = gettime(); @@ -238,7 +238,7 @@ strerror(errno)); for (i = 0; (i < state->nfds) && (ret > 0); i++) { - struct socksvc *cb; + struct cb *cb; if (!FD_ISSET(state->fds[i], &set)) continue;