diff options
author | phk <phk@FreeBSD.org> | 1996-01-24 21:12:23 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-01-24 21:12:23 +0000 |
commit | e7b9c377f822bc4d0b50421da4eccbe73e43678b (patch) | |
tree | 0421eea4b1ecfb759a27845bf2c1d67cdf1d79c3 /sys/nfs | |
parent | defff6cc5b2169d11d666f9ccd9d32a5719a8f28 (diff) | |
download | FreeBSD-src-e7b9c377f822bc4d0b50421da4eccbe73e43678b.zip FreeBSD-src-e7b9c377f822bc4d0b50421da4eccbe73e43678b.tar.gz |
Use new printf features rather than local kludges.
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs_vnops.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index cf8d223..32d8cb9 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/nfs_vnops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_vnops.c 8.5 (Berkeley) 2/13/94 - * $Id: nfs_vnops.c,v 1.30 1995/11/21 15:51:39 bde Exp $ + * $Id: nfs_vnops.c,v 1.31 1995/12/07 12:47:29 davidg Exp $ */ /* @@ -2447,7 +2447,6 @@ nfsmout: } return (error); } -static char hextoasc[] = "0123456789abcdef"; /* * Silly rename. To make the NFS filesystem that is stateless look a little @@ -2481,12 +2480,7 @@ nfs_sillyrename(dvp, vp, cnp) /* Fudge together a funny name */ pid = cnp->cn_proc->p_pid; - bcopy(".nfsAxxxx4.4", sp->s_name, 13); - sp->s_namlen = 12; - sp->s_name[8] = hextoasc[pid & 0xf]; - sp->s_name[7] = hextoasc[(pid >> 4) & 0xf]; - sp->s_name[6] = hextoasc[(pid >> 8) & 0xf]; - sp->s_name[5] = hextoasc[(pid >> 12) & 0xf]; + sp->s_namelen = sprintf(sp->s_name, ".nfsA%04x4.4", pid); /* Try lookitups until we get one that isn't there */ while (nfs_lookitup(dvp, sp->s_name, sp->s_namlen, sp->s_cred, |