psbuf_recycle now exists, so use it instead of destroy&make in one

spot I probably missed originally.  No real functional change.
This commit is contained in:
pooka 2007-04-18 15:53:20 +00:00
parent 4c854dd8b4
commit 8ecf355f37
1 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fs.c,v 1.6 2007/04/12 21:08:49 pooka Exp $ */
/* $NetBSD: fs.c,v 1.7 2007/04/18 15:53:20 pooka Exp $ */
/*
* Copyright (c) 2006 Antti Kantee. All Rights Reserved.
@ -30,7 +30,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: fs.c,v 1.6 2007/04/12 21:08:49 pooka Exp $");
__RCSID("$NetBSD: fs.c,v 1.7 2007/04/18 15:53:20 pooka Exp $");
#endif /* !lint */
#include <err.h>
@ -67,8 +67,7 @@ psshfs_domount(struct puffs_usermount *pu)
if (rv == -1)
err(1, "write handshake");
psbuf_destroy(pb);
pb = psbuf_make(PSB_IN);
psbuf_recycle(pb, PSB_IN);
while ((rv = psbuf_read(pctx, pb)) != 1)
if (rv == -1)