summaryrefslogtreecommitdiffstats
path: root/usr.bin/chpass/pw_yp.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-10-17 14:08:12 +0000
committerbde <bde@FreeBSD.org>1998-10-17 14:08:12 +0000
commit42b87ecc2ff4bd34362dd88aa424f3e78b588532 (patch)
tree4f20ca393bf0f4759f3d5bc174867c9111e6cf23 /usr.bin/chpass/pw_yp.c
parent2625896b1bc65794935c64adcc77ce4af92b5ee6 (diff)
downloadFreeBSD-src-42b87ecc2ff4bd34362dd88aa424f3e78b588532.zip
FreeBSD-src-42b87ecc2ff4bd34362dd88aa424f3e78b588532.tar.gz
Fixed printf format errors. Assume that uid_t's are representable as
unsigned longs.
Diffstat (limited to 'usr.bin/chpass/pw_yp.c')
-rw-r--r--usr.bin/chpass/pw_yp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/chpass/pw_yp.c b/usr.bin/chpass/pw_yp.c
index 777ec54..5754270 100644
--- a/usr.bin/chpass/pw_yp.c
+++ b/usr.bin/chpass/pw_yp.c
@@ -35,7 +35,7 @@
* Center for Telecommunications Research
* Columbia University, New York City
*
- * $Id: pw_yp.c,v 1.11 1997/07/29 15:45:36 wpaul Exp $
+ * $Id: pw_yp.c,v 1.12 1997/12/18 15:27:43 bde Exp $
*/
#ifdef YP
@@ -254,7 +254,7 @@ int use_yp (user, uid, which)
char ubuf[UT_NAMESIZE + 2];
if (which) {
- snprintf(ubuf, sizeof(ubuf), "%lu", uid);
+ snprintf(ubuf, sizeof(ubuf), "%lu", (unsigned long)uid);
user = (char *)&ubuf;
}
OpenPOWER on IntegriCloud