Skip to content

Commit 26eb236

Browse files
committed
rlm_kafka: tidy header includes to match the module standard
Move RCSID / USES_APPLE_DEPRECATED_API above the includes, switch the three `#include "lib/util/..."` to `<freeradius-devel/util/...>` to match every other module, group includes by subsystem, and pull pthread.h in alongside the other system headers in anticipation of the upcoming thread-ownership sanity check.
1 parent 973fabb commit 26eb236

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

src/modules/rlm_kafka/rlm_kafka.c

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,31 @@
4040
*
4141
* @copyright 2022,2026 Arran Cudbard-Bell (a.cudbardb@freeradius.org)
4242
*/
43-
#include "lib/util/debug.h"
44-
#include "lib/util/types.h"
45-
#include "lib/util/value.h"
4643
RCSID("$Id$")
44+
4745
USES_APPLE_DEPRECATED_API
4846

47+
#include <freeradius-devel/util/debug.h>
48+
#include <freeradius-devel/util/dlist.h>
49+
#include <freeradius-devel/util/misc.h>
50+
#include <freeradius-devel/util/rb.h>
51+
#include <freeradius-devel/util/types.h>
52+
#include <freeradius-devel/util/value.h>
53+
54+
#include <freeradius-devel/kafka/base.h>
55+
4956
#include <freeradius-devel/server/base.h>
5057
#include <freeradius-devel/server/module_rlm.h>
58+
5159
#include <freeradius-devel/unlang/call_env.h>
5260
#include <freeradius-devel/unlang/module.h>
5361
#include <freeradius-devel/unlang/xlat.h>
5462
#include <freeradius-devel/unlang/xlat_ctx.h>
5563
#include <freeradius-devel/unlang/xlat_func.h>
5664
#include <freeradius-devel/unlang/xlat_priv.h>
57-
#include <freeradius-devel/util/dlist.h>
58-
#include <freeradius-devel/util/misc.h>
59-
#include <freeradius-devel/util/rb.h>
60-
#include <freeradius-devel/kafka/base.h>
6165

6266
#include <fcntl.h>
67+
#include <pthread.h>
6368
#include <unistd.h>
6469

6570
/** Module instance data

0 commit comments

Comments
 (0)