mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Fixed printf format errors. Assume that uid_t's are representable as
unsigned longs.
This commit is contained in:
parent
fa63310f99
commit
06cc787d3e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40492
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue