diff options
author | bde <bde@FreeBSD.org> | 1998-06-30 17:30:22 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-06-30 17:30:22 +0000 |
commit | 53e5892174c34c39d6d81db0c3263e2bb4c25dbb (patch) | |
tree | 36031d886b8788a5c8a49c0ffde950a53f51b433 /lib/libc/rpc | |
parent | e9a40050062581b56f20f85567ecdda138916450 (diff) | |
download | FreeBSD-src-53e5892174c34c39d6d81db0c3263e2bb4c25dbb.zip FreeBSD-src-53e5892174c34c39d6d81db0c3263e2bb4c25dbb.tar.gz |
Fixed printf format errors.
Diffstat (limited to 'lib/libc/rpc')
-rw-r--r-- | lib/libc/rpc/clnt_perror.c | 8 | ||||
-rw-r--r-- | lib/libc/rpc/netname.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/rpc/clnt_perror.c b/lib/libc/rpc/clnt_perror.c index 79baac2..d48bfa5 100644 --- a/lib/libc/rpc/clnt_perror.c +++ b/lib/libc/rpc/clnt_perror.c @@ -30,7 +30,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)clnt_perror.c 1.15 87/10/07 Copyr 1984 Sun Micro";*/ /*static char *sccsid = "from: @(#)clnt_perror.c 2.1 88/07/29 4.0 RPCSRC";*/ -static char *rcsid = "$Id: clnt_perror.c,v 1.6 1996/12/30 14:19:34 peter Exp $"; +static char *rcsid = "$Id: clnt_perror.c,v 1.9 1997/05/28 05:05:04 wpaul Exp $"; #endif /* @@ -106,7 +106,7 @@ clnt_sperror(rpch, s) case RPC_VERSMISMATCH: (void) sprintf(str, "; low version = %lu, high version = %lu\n", - e.re_vers.low, e.re_vers.high); + (u_long)e.re_vers.low, (u_long)e.re_vers.high); break; case RPC_AUTHERROR: @@ -125,13 +125,13 @@ clnt_sperror(rpch, s) case RPC_PROGVERSMISMATCH: (void) sprintf(str, "; low version = %lu, high version = %lu\n", - e.re_vers.low, e.re_vers.high); + (u_long)e.re_vers.low, (u_long)e.re_vers.high); break; default: /* unknown */ (void) sprintf(str, "; s1 = %lu, s2 = %lu\n", - e.re_lb.s1, e.re_lb.s2); + (long)e.re_lb.s1, (long)e.re_lb.s2); break; } strstart[CLNT_PERROR_BUFLEN-2] = '\n'; diff --git a/lib/libc/rpc/netname.c b/lib/libc/rpc/netname.c index 3a3942b..22167be 100644 --- a/lib/libc/rpc/netname.c +++ b/lib/libc/rpc/netname.c @@ -101,7 +101,7 @@ user2netname(netname, uid, domain) if (strlen(domain) + 1 + MAXIPRINT > MAXNETNAMELEN) { return (0); } - (void) sprintf(netname, "%s.%ld@%s", OPSYS, uid, domain); + (void) sprintf(netname, "%s.%ld@%s", OPSYS, (u_long)uid, domain); return (1); } |