Format source code.

This commit is contained in:
Jordan Bancino 2023-04-16 17:51:52 +00:00
parent 4ee66ae3c7
commit 582df63a31
3 changed files with 15 additions and 14 deletions

View file

@ -689,7 +689,7 @@ UserDeleteTokens(User * user, char *exempt)
} }
int int
UserGetPrivileges(User *user) UserGetPrivileges(User * user)
{ {
if (!user) if (!user)
{ {
@ -700,7 +700,7 @@ UserGetPrivileges(User *user)
} }
int int
UserSetPrivileges(User *user, int privileges) UserSetPrivileges(User * user, int privileges)
{ {
JsonValue *val; JsonValue *val;
@ -726,7 +726,7 @@ UserSetPrivileges(User *user, int privileges)
} }
int int
UserDecodePrivileges(JsonValue *val) UserDecodePrivileges(JsonValue * val)
{ {
int privileges = USER_NONE; int privileges = USER_NONE;
@ -794,6 +794,7 @@ JsonValue *
UserEncodePrivileges(int privileges) UserEncodePrivileges(int privileges)
{ {
Array *arr = ArrayCreate(); Array *arr = ArrayCreate();
if (!arr) if (!arr)
{ {
return NULL; return NULL;