From 0dfeb9e6747bdbd58d0e262fc22947e4e628eefb Mon Sep 17 00:00:00 2001 From: Samanta Navarro Date: Thu, 16 Feb 2023 11:57:03 +0000 Subject: [PATCH] Fix comments These comments should indicate which functions they really wrap. An alternative would be to remove the line completely to avoid future copy&paste mistakes. Signed-off-by: Samanta Navarro --- libmisc/xgetXXbyYY.c | 2 +- libmisc/xgetgrgid.c | 2 +- libmisc/xgetgrnam.c | 2 +- libmisc/xgetpwuid.c | 2 +- libmisc/xgetspnam.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libmisc/xgetXXbyYY.c b/libmisc/xgetXXbyYY.c index a9d9290c..27ff2412 100644 --- a/libmisc/xgetXXbyYY.c +++ b/libmisc/xgetXXbyYY.c @@ -23,7 +23,7 @@ * Two important function classes that fall into this category are * getpwnam(3) and syslog(3). * - * This file provides wrapper to the getpwnam or getpwnam_r functions. + * This file provides wrapper to the name or name_r functions. */ #include diff --git a/libmisc/xgetgrgid.c b/libmisc/xgetgrgid.c index b83f9aa1..64191966 100644 --- a/libmisc/xgetgrgid.c +++ b/libmisc/xgetgrgid.c @@ -23,7 +23,7 @@ * Two important function classes that fall into this category are * getpwnam(3) and syslog(3). * - * This file provides wrapper to the getpwnam or getpwnam_r functions. + * This file provides wrapper to the getgrgid or getgrgid_r functions. */ #include diff --git a/libmisc/xgetgrnam.c b/libmisc/xgetgrnam.c index c4dcbc88..35ad9ee9 100644 --- a/libmisc/xgetgrnam.c +++ b/libmisc/xgetgrnam.c @@ -23,7 +23,7 @@ * Two important function classes that fall into this category are * getpwnam(3) and syslog(3). * - * This file provides wrapper to the getpwnam or getpwnam_r functions. + * This file provides wrapper to the getgrnam or getgrnam_r functions. */ #include diff --git a/libmisc/xgetpwuid.c b/libmisc/xgetpwuid.c index 9f66e2fc..d663a429 100644 --- a/libmisc/xgetpwuid.c +++ b/libmisc/xgetpwuid.c @@ -23,7 +23,7 @@ * Two important function classes that fall into this category are * getpwnam(3) and syslog(3). * - * This file provides wrapper to the getpwnam or getpwnam_r functions. + * This file provides wrapper to the getpwuid or getpwuid_r functions. */ #include diff --git a/libmisc/xgetspnam.c b/libmisc/xgetspnam.c index cf848635..ebda94ba 100644 --- a/libmisc/xgetspnam.c +++ b/libmisc/xgetspnam.c @@ -23,7 +23,7 @@ * Two important function classes that fall into this category are * getpwnam(3) and syslog(3). * - * This file provides wrapper to the getpwnam or getpwnam_r functions. + * This file provides wrapper to the getspnam or getspnam_r functions. */ #include