From f19a71a3db40774d76e8cc3e56a18341fc8bc22c Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 3 Jun 2022 10:32:47 -0600 Subject: [PATCH] Move a comment to the correct location. --- src/exec_intercept.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/exec_intercept.c b/src/exec_intercept.c index cbad78f72..3f7064aea 100644 --- a/src/exec_intercept.c +++ b/src/exec_intercept.c @@ -52,6 +52,11 @@ static struct intercept_closure *accept_closure; static void intercept_accept_cb(int fd, int what, void *v); static void intercept_cb(int fd, int what, void *v); +/* + * Create an intercept closure. + * Returns an opaque pointer to the closure, which is also + * passed to the event callback when not using ptrace(2). + */ void * intercept_setup(int fd, struct sudo_event_base *evbase, struct command_details *details) @@ -917,8 +922,6 @@ intercept_cb(int fd, int what, void *v) /* * Accept a new connection from the client register a new event for it. - * Returns an opaque pointer to the intercept closure, which is - * also passed to the event callback. */ static void intercept_accept_cb(int fd, int what, void *v)