[1/8] nss: Fix NSS_DECLARE_MODULE_FUNCTIONS handling of _nss_*_endnetgrent

Message ID f12db7afceb1274a2be7c46fc2da50de1e02a01f.1623085295.git.fweimer@redhat.com
State New
Headers show
Series
  • Move nss_files into libc
Related show

Commit Message

Adhemerval Zanella via Libc-alpha June 7, 2021, 5:38 p.m.
The old version had an additional underscore, making the declaration
ineffective.
---
 nss/nss.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.31.1

Comments

Andreas Schwab June 8, 2021, 2:42 p.m. | #1
On Jun 07 2021, Florian Weimer via Libc-alpha wrote:

> The old version had an additional underscore, making the declaration

> ineffective.


Ok.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

Patch

diff --git a/nss/nss.h b/nss/nss.h
index ae213f9a6c..c6d62adc0f 100644
--- a/nss/nss.h
+++ b/nss/nss.h
@@ -196,7 +196,7 @@  typedef enum nss_status nss_setspent (int);
   extern nss_endgrent _nss_##module##_endgrent;                          \
   extern nss_endhostent _nss_##module##_endhostent;                      \
   extern nss_endnetent _nss_##module##_endnetent;                        \
-  extern nss_endnetgrent _nss_##module##__endnetgrent;                   \
+  extern nss_endnetgrent _nss_##module##_endnetgrent;                    \
   extern nss_endprotoent _nss_##module##_endprotoent;                    \
   extern nss_endpwent _nss_##module##_endpwent;                          \
   extern nss_endrpcent _nss_##module##_endrpcent;                        \