Skip to content

Commit 0f1b1c0

Browse files
committed
mgt: Avoid needless cache_acceptor.h includes
We don't need a complete struct acceptor definition to satisfy mgt_acceptor.h declarations.
1 parent e9a3ddc commit 0f1b1c0

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

bin/varnishd/acceptor/mgt_acceptor.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ struct listen_arg {
4343
const struct uds_perms *perms;
4444
};
4545

46+
struct acceptor;
47+
4648
void VCA_Add(struct acceptor *);
4749
void VCA_Config(void);
4850

bin/varnishd/mgt/mgt_child.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
#include <sys/resource.h>
4848

4949
#include "mgt.h"
50-
#include "acceptor/cache_acceptor.h"
5150
#include "acceptor/mgt_acceptor.h"
5251

5352
#include "vapi/vsig.h"

bin/varnishd/mgt/mgt_main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
#include <sys/socket.h>
4848

4949
#include "mgt/mgt.h"
50-
#include "acceptor/cache_acceptor.h"
5150
#include "acceptor/mgt_acceptor.h"
5251
#include "common/heritage.h"
5352

0 commit comments

Comments
 (0)