Fix some nits

This commit is contained in:
Thog 2019-07-18 18:53:21 +02:00
parent 935a6cee92
commit a6e3bac1c8
No known key found for this signature in database
GPG Key ID: 0CD291558FAFDBC6
2 changed files with 8 additions and 9 deletions

View File

@ -3,7 +3,6 @@
#include "../kernel/event.h" #include "../kernel/event.h"
#include "../services/sm.h" #include "../services/sm.h"
#define BINDER_FIRST_CALL_TRANSACTION 0x1 #define BINDER_FIRST_CALL_TRANSACTION 0x1
typedef struct { typedef struct {
@ -12,14 +11,14 @@ typedef struct {
bool has_transact_auto : 1; bool has_transact_auto : 1;
s32 id; s32 id;
size_t ipc_buffer_size; size_t ipc_buffer_size;
Service *relay; Service* relay;
} Binder; } Binder;
// Note: binderClose will not close the session_handle provided to binderCreate. // Note: binderClose will not close the session_handle provided to binderCreate.
void binderCreate(Binder* b, s32 id); void binderCreate(Binder* b, s32 id);
void binderClose(Binder* b); void binderClose(Binder* b);
Result binderInitSession(Binder* b, Service *relay); Result binderInitSession(Binder* b, Service* relay);
Result binderTransactParcel( Result binderTransactParcel(
Binder* b, u32 code, Binder* b, u32 code,

View File

@ -17,7 +17,7 @@ void binderCreate(Binder* b, s32 id)
b->id = id; b->id = id;
} }
Result binderInitSession(Binder* b, Service *relay) Result binderInitSession(Binder* b, Service* relay)
{ {
Result rc = 0; Result rc = 0;