diff options
author | Bruce Evans <bde@FreeBSD.org> | 1998-10-17 14:08:12 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1998-10-17 14:08:12 +0000 |
commit | 176caa2877a07af869b5c469a57147a23c3f27b2 (patch) | |
tree | 669731c2a2a9e142c715394b1ebaa1431691fa40 | |
parent | daffec628c954a2fb752441e3e2d17b0530f4e40 (diff) | |
download | pw-darwin-176caa2877a07af869b5c469a57147a23c3f27b2.tar.gz pw-darwin-176caa2877a07af869b5c469a57147a23c3f27b2.tar.zst pw-darwin-176caa2877a07af869b5c469a57147a23c3f27b2.zip |
Fixed printf format errors. Assume that uid_t's are representable as
unsigned longs.
-rw-r--r-- | chpass/pw_yp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chpass/pw_yp.c b/chpass/pw_yp.c index 777ec54..5754270 100644 --- a/chpass/pw_yp.c +++ b/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; } |