Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/yp add explicit casts to avoid parameter conversion...



details:   https://anonhg.NetBSD.org/src/rev/8b7099e1a557
branches:  trunk
changeset: 494405:8b7099e1a557
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jul 06 03:14:05 2000 +0000

description:
add explicit casts to avoid parameter conversion warnings.

diffstat:

 lib/libc/yp/yp_all.c     |   7 ++++---
 lib/libc/yp/yp_first.c   |  10 ++++++----
 lib/libc/yp/yp_maplist.c |   6 +++---
 lib/libc/yp/yp_master.c  |   6 +++---
 lib/libc/yp/yp_match.c   |   6 +++---
 lib/libc/yp/yp_order.c   |   6 +++---
 lib/libc/yp/yplib.c      |   6 +++---
 7 files changed, 25 insertions(+), 22 deletions(-)

diffs (201 lines):

diff -r adc827d708c9 -r 8b7099e1a557 lib/libc/yp/yp_all.c
--- a/lib/libc/yp/yp_all.c      Thu Jul 06 03:13:22 2000 +0000
+++ b/lib/libc/yp/yp_all.c      Thu Jul 06 03:14:05 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: yp_all.c,v 1.10 2000/01/22 22:19:22 mycroft Exp $       */
+/*     $NetBSD: yp_all.c,v 1.11 2000/07/06 03:14:05 christos Exp $      */
 
 /*
  * Copyright (c) 1992, 1993 Theo de Raadt <deraadt%fsa.ca@localhost>
@@ -33,7 +33,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: yp_all.c,v 1.10 2000/01/22 22:19:22 mycroft Exp $");
+__RCSID("$NetBSD: yp_all.c,v 1.11 2000/07/06 03:14:05 christos Exp $");
 #endif
 
 #include "namespace.h"
@@ -85,7 +85,8 @@
        yprnk.domain = indomain;
        yprnk.map = inmap;
 
-       status = clnt_call(clnt, YPPROC_ALL, (xdrproc_t)xdr_ypreq_nokey, &yprnk,
+       status = clnt_call(clnt, (rpcproc_t)YPPROC_ALL,
+           (xdrproc_t)xdr_ypreq_nokey, &yprnk,
            (xdrproc_t)xdr_ypall, (char *)(void *)incallback, _yplib_timeout);
        clnt_destroy(clnt);
 
diff -r adc827d708c9 -r 8b7099e1a557 lib/libc/yp/yp_first.c
--- a/lib/libc/yp/yp_first.c    Thu Jul 06 03:13:22 2000 +0000
+++ b/lib/libc/yp/yp_first.c    Thu Jul 06 03:14:05 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: yp_first.c,v 1.12 2000/01/22 22:19:22 mycroft Exp $     */
+/*     $NetBSD: yp_first.c,v 1.13 2000/07/06 03:14:05 christos Exp $    */
 
 /*
  * Copyright (c) 1992, 1993 Theo de Raadt <deraadt%fsa.ca@localhost>
@@ -33,7 +33,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: yp_first.c,v 1.12 2000/01/22 22:19:22 mycroft Exp $");
+__RCSID("$NetBSD: yp_first.c,v 1.13 2000/07/06 03:14:05 christos Exp $");
 #endif
 
 #include "namespace.h"
@@ -85,7 +85,8 @@
        yprnk.map = inmap;
        (void)memset(&yprkv, 0, sizeof yprkv);
 
-       r = clnt_call(ysd->dom_client, YPPROC_FIRST, (xdrproc_t)xdr_ypreq_nokey,
+       r = clnt_call(ysd->dom_client, (rpcproc_t)YPPROC_FIRST,
+           (xdrproc_t)xdr_ypreq_nokey,
            &yprnk, (xdrproc_t)xdr_ypresp_key_val, &yprkv, _yplib_timeout);
        if (r != RPC_SUCCESS) {
                if (++nerrs == _yplib_nerrs) {
@@ -167,7 +168,8 @@
        yprk.keydat.dsize = inkeylen;
        (void)memset(&yprkv, 0, sizeof yprkv);
 
-       r = clnt_call(ysd->dom_client, YPPROC_NEXT, (xdrproc_t)xdr_ypreq_key,
+       r = clnt_call(ysd->dom_client, (rpcproc_t)YPPROC_NEXT,
+           (xdrproc_t)xdr_ypreq_key,
            &yprk, (xdrproc_t)xdr_ypresp_key_val, &yprkv, _yplib_timeout);
        if (r != RPC_SUCCESS) {
                if (++nerrs == _yplib_nerrs) {
diff -r adc827d708c9 -r 8b7099e1a557 lib/libc/yp/yp_maplist.c
--- a/lib/libc/yp/yp_maplist.c  Thu Jul 06 03:13:22 2000 +0000
+++ b/lib/libc/yp/yp_maplist.c  Thu Jul 06 03:14:05 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: yp_maplist.c,v 1.9 2000/01/22 22:19:22 mycroft Exp $    */
+/*     $NetBSD: yp_maplist.c,v 1.10 2000/07/06 03:14:05 christos Exp $  */
 
 /*
  * Copyright (c) 1992, 1993 Theo de Raadt <deraadt%fsa.ca@localhost>
@@ -33,7 +33,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: yp_maplist.c,v 1.9 2000/01/22 22:19:22 mycroft Exp $");
+__RCSID("$NetBSD: yp_maplist.c,v 1.10 2000/07/06 03:14:05 christos Exp $");
 #endif
 
 #include "namespace.h"
@@ -69,7 +69,7 @@
 
        memset(&ypml, 0, sizeof ypml);
 
-       r = clnt_call(ysd->dom_client, YPPROC_MAPLIST,
+       r = clnt_call(ysd->dom_client, (rpcproc_t)YPPROC_MAPLIST,
                   (xdrproc_t)xdr_ypdomain_wrap_string, &indomain,
                   (xdrproc_t)xdr_ypresp_maplist, &ypml, _yplib_timeout);
        if (r != RPC_SUCCESS) {
diff -r adc827d708c9 -r 8b7099e1a557 lib/libc/yp/yp_master.c
--- a/lib/libc/yp/yp_master.c   Thu Jul 06 03:13:22 2000 +0000
+++ b/lib/libc/yp/yp_master.c   Thu Jul 06 03:14:05 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: yp_master.c,v 1.11 2000/01/22 22:19:22 mycroft Exp $    */
+/*     $NetBSD: yp_master.c,v 1.12 2000/07/06 03:14:05 christos Exp $   */
 
 /*
  * Copyright (c) 1992, 1993 Theo de Raadt <deraadt%fsa.ca@localhost>
@@ -33,7 +33,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: yp_master.c,v 1.11 2000/01/22 22:19:22 mycroft Exp $");
+__RCSID("$NetBSD: yp_master.c,v 1.12 2000/07/06 03:14:05 christos Exp $");
 #endif
 
 #include "namespace.h"
@@ -81,7 +81,7 @@
 
        (void)memset(&yprm, 0, sizeof yprm);
 
-       r = clnt_call(ysd->dom_client, YPPROC_MASTER,
+       r = clnt_call(ysd->dom_client, (rpcproc_t)YPPROC_MASTER,
                      (xdrproc_t)xdr_ypreq_nokey, &yprnk,
                      (xdrproc_t)xdr_ypresp_master, &yprm, _yplib_timeout);
        if (r != RPC_SUCCESS) {
diff -r adc827d708c9 -r 8b7099e1a557 lib/libc/yp/yp_match.c
--- a/lib/libc/yp/yp_match.c    Thu Jul 06 03:13:22 2000 +0000
+++ b/lib/libc/yp/yp_match.c    Thu Jul 06 03:14:05 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: yp_match.c,v 1.14 2000/01/22 22:19:22 mycroft Exp $     */
+/*     $NetBSD: yp_match.c,v 1.15 2000/07/06 03:14:05 christos Exp $    */
 
 /*
  * Copyright (c) 1992, 1993 Theo de Raadt <deraadt%fsa.ca@localhost>
@@ -33,7 +33,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: yp_match.c,v 1.14 2000/01/22 22:19:22 mycroft Exp $");
+__RCSID("$NetBSD: yp_match.c,v 1.15 2000/07/06 03:14:05 christos Exp $");
 #endif
 
 #include "namespace.h"
@@ -230,7 +230,7 @@
 
        memset(&yprv, 0, sizeof yprv);
 
-       r = clnt_call(ysd->dom_client, YPPROC_MATCH,
+       r = clnt_call(ysd->dom_client, (rpcproc_t)YPPROC_MATCH,
                      (xdrproc_t)xdr_ypreq_key, &yprk,
                      (xdrproc_t)xdr_ypresp_val, &yprv, 
                      _yplib_timeout);
diff -r adc827d708c9 -r 8b7099e1a557 lib/libc/yp/yp_order.c
--- a/lib/libc/yp/yp_order.c    Thu Jul 06 03:13:22 2000 +0000
+++ b/lib/libc/yp/yp_order.c    Thu Jul 06 03:14:05 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: yp_order.c,v 1.10 2000/01/22 22:19:22 mycroft Exp $     */
+/*     $NetBSD: yp_order.c,v 1.11 2000/07/06 03:14:05 christos Exp $    */
 
 /*
  * Copyright (c) 1992, 1993 Theo de Raadt <deraadt%fsa.ca@localhost>
@@ -33,7 +33,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: yp_order.c,v 1.10 2000/01/22 22:19:22 mycroft Exp $");
+__RCSID("$NetBSD: yp_order.c,v 1.11 2000/07/06 03:14:05 christos Exp $");
 #endif
 
 #include "namespace.h"
@@ -78,7 +78,7 @@
 
        (void)memset(&ypro, 0, sizeof ypro);
 
-       r = clnt_call(ysd->dom_client, YPPROC_ORDER,
+       r = clnt_call(ysd->dom_client, (rpcproc_t)YPPROC_ORDER,
                      (xdrproc_t)xdr_ypreq_nokey, &yprnk,
                      (xdrproc_t)xdr_ypresp_order, &ypro, 
                      _yplib_timeout);
diff -r adc827d708c9 -r 8b7099e1a557 lib/libc/yp/yplib.c
--- a/lib/libc/yp/yplib.c       Thu Jul 06 03:13:22 2000 +0000
+++ b/lib/libc/yp/yplib.c       Thu Jul 06 03:14:05 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: yplib.c,v 1.36 2000/01/22 22:19:22 mycroft Exp $        */
+/*     $NetBSD: yplib.c,v 1.37 2000/07/06 03:14:05 christos Exp $       */
 
 /*
  * Copyright (c) 1992, 1993 Theo de Raadt <deraadt%fsa.ca@localhost>
@@ -33,7 +33,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: yplib.c,v 1.36 2000/01/22 22:19:22 mycroft Exp $");
+__RCSID("$NetBSD: yplib.c,v 1.37 2000/07/06 03:14:05 christos Exp $");
 #endif
 
 #include "namespace.h"
@@ -203,7 +203,7 @@
                                free(ysd);
                        return YPERR_YPBIND;
                }
-               r = clnt_call(client, YPBINDPROC_DOMAIN,
+               r = clnt_call(client, (rpcproc_t)YPBINDPROC_DOMAIN,
                    (xdrproc_t)xdr_ypdomain_wrap_string, &dom,
                    (xdrproc_t)xdr_ypbind_resp, &ypbr, _yplib_timeout);
                if (r != RPC_SUCCESS) {



Home | Main Index | Thread Index | Old Index