diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-03-03 17:03:27 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-03-03 17:03:27 +0000 |
commit | d60002e79c36fd4abc7d72e4b70a77f82e02415b (patch) | |
tree | 6afe4575e6e88e58949c452ad65d9a8ab51e52e4 /nis | |
parent | 902e0412239da2995c58c330843a47de93f00883 (diff) | |
download | glibc-d60002e79c36fd4abc7d72e4b70a77f82e02415b.tar.gz glibc-d60002e79c36fd4abc7d72e4b70a77f82e02415b.tar.xz glibc-d60002e79c36fd4abc7d72e4b70a77f82e02415b.zip |
Add prototypes to prevent warnings.
Diffstat (limited to 'nis')
-rw-r--r-- | nis/rpcsvc/ypclnt.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/nis/rpcsvc/ypclnt.h b/nis/rpcsvc/ypclnt.h index b61a498417..6d96364eef 100644 --- a/nis/rpcsvc/ypclnt.h +++ b/nis/rpcsvc/ypclnt.h @@ -5,12 +5,12 @@ ** modify it under the terms of the GNU Library General Public ** License as published by the Free Software Foundation; either ** version 2 of the License, or (at your option) any later version. -** +** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Library General Public License for more details. -** +** ** You should have received a copy of the GNU Library General Public ** License along with this library; if not, write to the Free ** Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. @@ -52,24 +52,26 @@ __BEGIN_DECLS /* struct ypall_callback * is the arg which must be passed to yp_all */ -struct ypall_callback { - int (*foreach)(); - char *data; -}; +struct ypall_callback + { + int (*foreach) __P ((int __status, char *__key, int __keylen, + char *__val, int __vallen, char *__data)); + char *data; + }; /* External NIS client function references. */ extern int yp_bind __P ((__const char *)); extern void yp_unbind __P ((__const char *)); extern int yp_get_default_domain __P ((char **)); -extern int yp_match __P ((__const char *, __const char *, __const char *, +extern int yp_match __P ((__const char *, __const char *, __const char *, __const int, char **, int *)); -extern int yp_first __P ((__const char *, __const char *, char **, +extern int yp_first __P ((__const char *, __const char *, char **, int *, char **, int *)); -extern int yp_next __P ((__const char *, __const char *, __const char *, +extern int yp_next __P ((__const char *, __const char *, __const char *, __const int, char **, int *, char **, int *)); extern int yp_master __P ((__const char *, __const char *, char **)); extern int yp_order __P ((__const char *, __const char *, unsigned int *)); -extern int yp_all __P ((__const char *, __const char *, +extern int yp_all __P ((__const char *, __const char *, __const struct ypall_callback *)); extern __const char *yperr_string __P ((__const int)); extern __const char *ypbinderr_string __P ((__const int)); @@ -81,7 +83,7 @@ extern int yp_maplist __P ((__const char *, struct ypmaplist **)); #endif /* Exist only under BSD and Linux systems */ -extern int __yp_check __P ((char **)); +extern int __yp_check __P ((char **)); __END_DECLS |