]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
libsubid: Apply minor fixes
authorDaniel Bershatsky <d.bershatsky2@skoltech.ru>
Wed, 12 Jun 2024 14:38:43 +0000 (17:38 +0300)
committerAlejandro Colomar <alx@kernel.org>
Wed, 12 Jun 2024 19:45:31 +0000 (21:45 +0200)
lib/nss.c
lib/prototypes.h

index 9174e97bfb8d3334a57d1537503433a7f0ef51a1..0f414e188879681c90b590e41561ff60c820a118 100644 (file)
--- 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;
index 7e2f5d224379764a1c18a859fb4606aca0e898ba..1307c132f477bca13833f0817eaa0800480564c5 100644 (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);