Blame SOURCES/glibc-rh1505492-prototypes-putXent.patch

00db10
Introduce prototype-style definitions for putgrent, putpwent.  Upstream,
00db10
this was done as part of this commit (not backported here):
00db10
00db10
commit 676599b36a92f3c201c5682ee7a5caddd9f370a4
00db10
Author: Florian Weimer <fweimer@redhat.com>
00db10
Date:   Fri Oct 2 11:34:13 2015 +0200
00db10
00db10
    Harden putpwent, putgrent, putspent, putspent against injection [BZ #18724]
00db10
00db10
diff --git a/grp/putgrent.c b/grp/putgrent.c
00db10
index 176a7a15d8bb6ec2..1d69136c30c81bcd 100644
00db10
--- a/grp/putgrent.c
00db10
+++ b/grp/putgrent.c
00db10
@@ -27,9 +27,7 @@
00db10
 /* Write an entry to the given stream.
00db10
    This must know the format of the group file.  */
00db10
 int
00db10
-putgrent (gr, stream)
00db10
-     const struct group *gr;
00db10
-     FILE *stream;
00db10
+putgrent (const struct group *gr, FILE *stream)
00db10
 {
00db10
   int retval;
00db10
 
00db10
diff --git a/pwd/putpwent.c b/pwd/putpwent.c
00db10
index e9470ed1012a1789..9a9f04dcf4b596ee 100644
00db10
--- a/pwd/putpwent.c
00db10
+++ b/pwd/putpwent.c
00db10
@@ -24,9 +24,7 @@
00db10
 /* Write an entry to the given stream.
00db10
    This must know the format of the password file.  */
00db10
 int
00db10
-putpwent (p, stream)
00db10
-     const struct passwd *p;
00db10
-     FILE *stream;
00db10
+putpwent (const struct passwd *p, FILE *stream)
00db10
 {
00db10
   if (p == NULL || stream == NULL)
00db10
     {