diff options
author | alfred <alfred@FreeBSD.org> | 2001-03-20 10:42:49 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2001-03-20 10:42:49 +0000 |
commit | b4e56ebf7660b7ce521d087e2d9b1913572b9d01 (patch) | |
tree | 3c78e08e2b4d7de7cb402f5b2b268a1587642ff7 /sys/netatm | |
parent | e345ef481160c6d89bd8ac528d7704b1f80d7817 (diff) | |
download | FreeBSD-src-b4e56ebf7660b7ce521d087e2d9b1913572b9d01.zip FreeBSD-src-b4e56ebf7660b7ce521d087e2d9b1913572b9d01.tar.gz |
Silence some warnings
Submitted by: LINT
Diffstat (limited to 'sys/netatm')
-rw-r--r-- | sys/netatm/port.h | 2 | ||||
-rw-r--r-- | sys/netatm/spans/spans_kxdr.c | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/sys/netatm/port.h b/sys/netatm/port.h index 8ada59f..911f9a2 100644 --- a/sys/netatm/port.h +++ b/sys/netatm/port.h @@ -86,7 +86,7 @@ #if defined(BSD) #define KM_CMP(b1, b2, len) bcmp((void *)(b1), (void *)(b2),\ (len)) -#define KM_COPY(from, to, len) bcopy((void *)(from), (void *)(to),\ +#define KM_COPY(from, to, len) bcopy((const void *)(from), (void *)(to),\ (len)) #define KM_ZERO(addr, len) bzero((void *)(addr), (len)) #endif diff --git a/sys/netatm/spans/spans_kxdr.c b/sys/netatm/spans/spans_kxdr.c index 8425fb5..8900cc2 100644 --- a/sys/netatm/spans/spans_kxdr.c +++ b/sys/netatm/spans/spans_kxdr.c @@ -428,9 +428,9 @@ xdr_opaque(xdrs, cp, cnt) void xdrmbuf_init __P((XDR *, KBuffer *, enum xdr_op)); static bool_t xdrmbuf_getlong __P((XDR *, long *)); -static bool_t xdrmbuf_putlong __P((XDR *, long *)); -static bool_t xdrmbuf_getbytes __P((XDR *, caddr_t, u_int)); -static bool_t xdrmbuf_putbytes __P((XDR *, caddr_t, u_int)); +static bool_t xdrmbuf_putlong __P((XDR *, const long *)); +static bool_t xdrmbuf_getbytes __P((XDR *, char *, u_int)); +static bool_t xdrmbuf_putbytes __P((XDR *, const char *, u_int)); static u_int xdrmbuf_getpos __P((XDR *)); static struct xdr_ops xdrmbuf_ops = { @@ -514,14 +514,14 @@ xdrmbuf_getlong(xdrs, lp) /* * Advance the data stream */ - xdrs->x_private += sizeof(long); + ((long *)xdrs->x_private)++; return (TRUE); } static bool_t xdrmbuf_putlong(xdrs, lp) register XDR *xdrs; - long *lp; + const long *lp; { /* @@ -570,7 +570,7 @@ xdrmbuf_putlong(xdrs, lp) /* * Advance the data stream */ - xdrs->x_private += sizeof(long); + ((long *)xdrs->x_private)++; return (TRUE); } @@ -617,7 +617,7 @@ xdrmbuf_getbytes(xdrs, addr, len) /* * Update data stream controls */ - xdrs->x_private += copy; + ((char *)xdrs->x_private) += copy; xdrs->x_handy -= copy; addr += copy; len -= copy; @@ -628,7 +628,7 @@ xdrmbuf_getbytes(xdrs, addr, len) static bool_t xdrmbuf_putbytes(xdrs, addr, len) register XDR *xdrs; - caddr_t addr; + const char *addr; register u_int len; { @@ -668,7 +668,7 @@ xdrmbuf_putbytes(xdrs, addr, len) /* * Update data stream controls */ - xdrs->x_private += copy; + ((char *)xdrs->x_private)++; xdrs->x_handy -= copy; addr += copy; len -= copy; |