Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

style(install): clang-format-20 the LSA helper declarations (#1705)

Martin Vogel618849512d01
diff --git a/src/cli/activation_transaction.c b/src/cli/activation_transaction.c
index 03784ab4c..6185535f7 100644
--- a/src/cli/activation_transaction.c
+++ b/src/cli/activation_transaction.c
@@ -440,8 +440,8 @@ static void activation_windows_security_destroy(activation_windows_security_t *s
typedef NTSTATUS(NTAPI *activation_lsa_open_policy_fn)(PLSA_UNICODE_STRING, PLSA_OBJECT_ATTRIBUTES,
ACCESS_MASK, PLSA_HANDLE);
typedef NTSTATUS(NTAPI *activation_lsa_query_information_policy_fn)(LSA_HANDLE,
- POLICY_INFORMATION_CLASS,
- PVOID *);
+ POLICY_INFORMATION_CLASS,
+ PVOID *);
typedef NTSTATUS(NTAPI *activation_lsa_free_memory_fn)(PVOID);
typedef NTSTATUS(NTAPI *activation_lsa_close_fn)(LSA_HANDLE);
typedef BOOL(WINAPI *activation_create_well_known_sid_fn)(WELL_KNOWN_SID_TYPE, PSID, PSID, DWORD *);
@@ -486,7 +486,8 @@ static PSID activation_windows_local_admin_sid(void) {
(void)create_sid(WinAccountAdministratorSid, domain->DomainSid, NULL, &needed);
if (needed > 0U) {
PSID admin = malloc(needed);
- if (admin && create_sid(WinAccountAdministratorSid, domain->DomainSid, admin, &needed) &&
+ if (admin &&
+ create_sid(WinAccountAdministratorSid, domain->DomainSid, admin, &needed) &&
IsValidSid(admin)) {
cached = admin;
} else {
@@ -506,7 +507,7 @@ static PSID activation_windows_local_admin_sid(void) {
* offending owner's SID string, mirroring the daemon's ACL/owner diagnostics, so
* the operator sees the exact identity to remove or the directory to move. */
static void activation_windows_note_untrusted_owner(const char *predicate, PSID owner,
- DWORD os_error) {
+ DWORD os_error) {
char label[192];
LPSTR owner_text = NULL;
(void)snprintf(
diff --git a/src/daemon/ipc.c b/src/daemon/ipc.c
index fed1a5ef4..cb30be8a7 100644
--- a/src/daemon/ipc.c
+++ b/src/daemon/ipc.c
@@ -4053,8 +4053,8 @@ static bool win_sid_is_trusted_installer(const uint8_t *sid, size_t sid_length)
* reached through the already-loaded module handle in win_security_t and the
* function pointers are resolved dynamically, matching this file's SID-API style
* and adding no static import. */
-typedef NTSTATUS(NTAPI *lsa_open_policy_fn)(PLSA_UNICODE_STRING, PLSA_OBJECT_ATTRIBUTES, ACCESS_MASK,
- PLSA_HANDLE);
+typedef NTSTATUS(NTAPI *lsa_open_policy_fn)(PLSA_UNICODE_STRING, PLSA_OBJECT_ATTRIBUTES,
+ ACCESS_MASK, PLSA_HANDLE);
typedef NTSTATUS(NTAPI *lsa_query_information_policy_fn)(LSA_HANDLE, POLICY_INFORMATION_CLASS,
PVOID *);
typedef NTSTATUS(NTAPI *lsa_free_memory_fn)(PVOID);
@@ -4074,9 +4074,8 @@ static BOOL CALLBACK win_resolve_local_admin_sid(PINIT_ONCE once, PVOID paramete
HMODULE advapi = security->advapi;
lsa_open_policy_fn lsa_open =
(lsa_open_policy_fn)(void (*)(void))GetProcAddress(advapi, "LsaOpenPolicy");
- lsa_query_information_policy_fn lsa_query =
- (lsa_query_information_policy_fn)(void (*)(void))GetProcAddress(advapi,
- "LsaQueryInformationPolicy");
+ lsa_query_information_policy_fn lsa_query = (lsa_query_information_policy_fn)(void (*)(
+ void))GetProcAddress(advapi, "LsaQueryInformationPolicy");
lsa_free_memory_fn lsa_free =
(lsa_free_memory_fn)(void (*)(void))GetProcAddress(advapi, "LsaFreeMemory");
lsa_close_fn lsa_close = (lsa_close_fn)(void (*)(void))GetProcAddress(advapi, "LsaClose");