Fix internal types in fgetpwent_r and fgetgrent_r.

This commit is contained in:
Jonas 'Sortie' Termansen 2023-03-06 20:18:33 +01:00
parent 2a07e23695
commit 7963da689d
2 changed files with 4 additions and 4 deletions

View File

@ -59,7 +59,7 @@ static bool next_field_uintmax(char** current, uintmax_t* result)
return true;
}
static gid_t next_field_gid(char** current, gid_t* result)
static bool next_field_gid(char** current, gid_t* result)
{
uintmax_t id_umax;
if ( !next_field_uintmax(current, &id_umax) )

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013 Jonas 'Sortie' Termansen.
* Copyright (c) 2013, 2023 Jonas 'Sortie' Termansen.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@ -58,7 +58,7 @@ static bool next_field_uintmax(char** current, uintmax_t* result)
return true;
}
static gid_t next_field_gid(char** current, gid_t* result)
static bool next_field_gid(char** current, gid_t* result)
{
uintmax_t id_umax;
if ( !next_field_uintmax(current, &id_umax) )
@ -70,7 +70,7 @@ static gid_t next_field_gid(char** current, gid_t* result)
return true;
}
static uid_t next_field_uid(char** current, uid_t* result)
static bool next_field_uid(char** current, uid_t* result)
{
uintmax_t id_umax;
if ( !next_field_uintmax(current, &id_umax) )