Skip to content

Commit

Permalink
libsubid: Fix code style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
daskol authored and alejandro-colomar committed Jun 12, 2024
1 parent b620b5d commit df59088
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/subordinateio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,8 @@ bool release_subid_range(struct subordinate_range *range, enum subid_type id_typ
return ret;
}

void free_subid_pointer(void *ptr) {
void free_subid_pointer(void *ptr)
{
struct subid_nss_ops *h = get_subid_nss_handle();
if (h) {
h->free(ptr);
Expand Down
3 changes: 2 additions & 1 deletion libsubid/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ bool subid_init(const char *progname, FILE * logfd)
return true;
}

void subid_free(void *ptr) {
void subid_free(void *ptr)
{
free_subid_pointer(ptr);
}

Expand Down
3 changes: 2 additions & 1 deletion tests/libsubid/04_nss/libsubid_zzz.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ enum subid_status shadow_subid_list_owner_ranges(const char *owner, enum subid_t
return SUBID_STATUS_SUCCESS;
}

void shadow_subid_free(void *ptr) {
void shadow_subid_free(void *ptr)
{
free(ptr);
}

0 comments on commit df59088

Please sign in to comment.