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

Message ID f12db7afceb1274a2be7c46fc2da50de1e02a01f.1623085295.git.fweimer@redhat.com
State Committed
Commit 5e1ce61e3e71fb7ffe53f58fe96e67cb15f94854
Headers
Series Move nss_files into libc |

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent

Commit Message

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

Comments

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

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

Ok.

Andreas.
  

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;                        \