From: Daniel Bershatsky Date: Wed, 12 Jun 2024 14:38:43 +0000 (+0300) Subject: libsubid: Apply minor fixes X-Git-Tag: 4.16.0-rc1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29dbcfbabd7e55da665a22528a0359770f481170;p=thirdparty%2Fshadow.git libsubid: Apply minor fixes --- diff --git a/lib/nss.c b/lib/nss.c index 9174e97bf..0f414e188 100644 --- a/lib/nss.c +++ b/lib/nss.c @@ -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; diff --git a/lib/prototypes.h b/lib/prototypes.h index 7e2f5d224..1307c132f 100644 --- a/lib/prototypes.h +++ b/lib/prototypes.h @@ -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);