libsubid: Apply minor fixes

This commit is contained in:
Daniel Bershatsky
2024-06-12 17:38:43 +03:00
committed by Alejandro Colomar
parent 0217516349
commit 29dbcfbabd
2 changed files with 3 additions and 3 deletions

View File

@@ -131,9 +131,9 @@ void nss_init(const char *nsswitch_path) {
fprintf(shadow_logfd, "%s did not provide @find_subid_owners@\n", libname);
goto close_lib;
}
subid_nss->free= dlsym(h, "shadow_subid_free");
subid_nss->free = dlsym(h, "shadow_subid_free");
if (!subid_nss->free) {
// Fallback to default `free()` for backward compatibility.
// Fallback to free(3) for backward compatibility.
subid_nss->free = free;
}
subid_nss->handle = h;

View File

@@ -292,7 +292,7 @@ struct subid_nss_ops {
* Some routines of subid_nss_ops allocate memory which should be freed by
* caller after use. In order to deallocate that memory block, one should
* use this routine to release that memory. By default, this function
* pointer is set to free() for backward compatibility. However, it is
* pointer is set to free(3) for backward compatibility. However, it is
* strongly recommended to define this routine explicitly.
*/
void (*free)(void *ptr);