Skip to content

Commit

Permalink
Some more lint fixes (#1295)
Browse files Browse the repository at this point in the history
* lint fixes

* more lint
  • Loading branch information
kallsyms committed Feb 20, 2024
1 parent 42eb0a3 commit 7fa23d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Source/common/SantaCache.h
Expand Up @@ -320,8 +320,8 @@ class SantaCache {
Lock a bucket. Spins until the lock is acquired.
*/
inline void lock(struct bucket *bucket) const {
while (OSAtomicTestAndSet(7, (volatile uint8_t *)&bucket->head))
;
while (OSAtomicTestAndSet(7, (volatile uint8_t *)&bucket->head)) {
}
}

/**
Expand Down
4 changes: 2 additions & 2 deletions Source/santad/EventProviders/DiskArbitrationTestUtil.mm
Expand Up @@ -152,13 +152,13 @@ void DARegisterDiskAppearedCallback(DASessionRef session, CFDictionaryRef __null

void DARegisterDiskDisappearedCallback(DASessionRef session, CFDictionaryRef __nullable match,
DADiskDisappearedCallback callback,
void *__nullable context){};
void *__nullable context) {};

void DARegisterDiskDescriptionChangedCallback(DASessionRef session,
CFDictionaryRef __nullable match,
CFArrayRef __nullable watch,
DADiskDescriptionChangedCallback callback,
void *__nullable context){};
void *__nullable context) {};

void DASessionSetDispatchQueue(DASessionRef session, dispatch_queue_t __nullable queue) {
MockDiskArbitration *mockDA = [MockDiskArbitration mockDiskArbitration];
Expand Down
4 changes: 2 additions & 2 deletions Source/santad/EventProviders/EndpointSecurity/Message.h
Expand Up @@ -43,8 +43,8 @@ class Message {

// Helper to get the API associated with this message.
// Used for things like es_exec_arg_count.
// We should ideally rework this to somehow present these functions as methods on the Message,
// however this would be a bit of a bigger lift.
// We should ideally rework this to somehow present these functions as
// methods on the Message, however this would be a bit of a bigger lift.
std::shared_ptr<EndpointSecurityAPI> ESAPI() const { return esapi_; }

std::string ParentProcessName() const;
Expand Down

0 comments on commit 7fa23d4

Please sign in to comment.