Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/ypserv/common remove superfluous casts



details:   https://anonhg.NetBSD.org/src/rev/19ac80ded288
branches:  trunk
changeset: 474914:19ac80ded288
user:      lukem <lukem%NetBSD.org@localhost>
date:      Mon Jul 26 03:01:09 1999 +0000

description:
remove superfluous casts

diffstat:

 usr.sbin/ypserv/common/ypdb.c |  20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diffs (83 lines):

diff -r 45cc68badc71 -r 19ac80ded288 usr.sbin/ypserv/common/ypdb.c
--- a/usr.sbin/ypserv/common/ypdb.c     Mon Jul 26 02:16:35 1999 +0000
+++ b/usr.sbin/ypserv/common/ypdb.c     Mon Jul 26 03:01:09 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ypdb.c,v 1.6 1999/07/25 09:33:37 lukem Exp $   */
+/*     $NetBSD: ypdb.c,v 1.7 1999/07/26 03:01:09 lukem Exp $   */
 
 /*
  * Copyright (c) 1990, 1993
@@ -42,7 +42,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ypdb.c,v 1.6 1999/07/25 09:33:37 lukem Exp $");
+__RCSID("$NetBSD: ypdb.c,v 1.7 1999/07/26 03:01:09 lukem Exp $");
 #endif
 
 #include <sys/param.h>
@@ -117,14 +117,14 @@
        int status;
 
        nk.data = key.dptr;
-       nk.size = (size_t)key.dsize;
+       nk.size = key.dsize;
        status = (db->get)(db, &nk, &nd, 0);
        if (status) {
                retkey.dptr = NULL;
                retkey.dsize = 0;
        } else {
                retkey.dptr = nd.data;
-               retkey.dsize = (int)nd.size;
+               retkey.dsize = nd.size;
        }
        return (retkey);
 }
@@ -149,7 +149,7 @@
                retkey.dsize = 0;
        } else {
                retkey.dptr = nk.data;
-               retkey.dsize = (int)nk.size;
+               retkey.dsize = nk.size;
        }
        return (retkey);
 }
@@ -174,7 +174,7 @@
                retkey.dsize = 0;
        } else {
                retkey.dptr = nk.data;
-               retkey.dsize = (int)nk.size;
+               retkey.dsize = nk.size;
        }
        return (retkey);
 }
@@ -194,7 +194,7 @@
        DBT nk, nd;
 
        nk.data = key.dptr;
-       nk.size = (size_t)key.dsize;
+       nk.size = key.dsize;
        status = (db->seq)(db, &nk, &nd, R_CURSOR);
        if (status) {
                key.dptr = NULL;
@@ -218,7 +218,7 @@
        DBT nk;
 
        nk.data = key.dptr;
-       nk.size = (size_t)key.dsize;
+       nk.size = key.dsize;
        status = (db->del)(db, &nk, 0);
        if (status)
                return (-1);
@@ -244,9 +244,9 @@
        if (key.dsize > YPMAXRECORD || content.dsize > YPMAXRECORD)
                return -1;
        nk.data = key.dptr;
-       nk.size = (size_t)key.dsize;
+       nk.size = key.dsize;
        nd.data = content.dptr;
-       nd.size = (size_t)content.dsize;
+       nd.size = content.dsize;
        return ((db->put)(db, &nk, &nd,
            (flags == YPDB_INSERT) ? R_NOOVERWRITE : 0));
 }



Home | Main Index | Thread Index | Old Index