]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
manager: comprehensively mark manager_dispatch_user_lookup_fd() as static
authorLennart Poettering <lennart@poettering.net>
Tue, 23 Apr 2024 21:28:21 +0000 (23:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 24 Apr 2024 15:33:51 +0000 (17:33 +0200)
The prototype was static, but the implementation was not. Make both
static, this is otherwise too confusing. (This doesn't actually change
anything, since the prototype decides about this anyway, but it makes
things easier to read.)

src/core/manager.c

index ebaf33bc5f69afb9ec9ecaa61d20e7029c6b9a05..42801c2b46ecaa7482e69628c0b09c25af53d1ca 100644 (file)
@@ -4755,7 +4755,7 @@ static void manager_vacuum(Manager *m) {
         exec_shared_runtime_vacuum(m);
 }
 
-int manager_dispatch_user_lookup_fd(sd_event_source *source, int fd, uint32_t revents, void *userdata) {
+static int manager_dispatch_user_lookup_fd(sd_event_source *source, int fd, uint32_t revents, void *userdata) {
         struct buffer {
                 uid_t uid;
                 gid_t gid;