mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-20 15:43:16 +00:00
#ifdef a diagnostic panic, plus another missed costmetic change.
Obtained from: NetBSD
This commit is contained in:
parent
1da42e389c
commit
6301c8c330
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36519
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95
|
||||
* $Id: nfs_subs.c,v 1.57 1998/05/31 17:48:04 peter Exp $
|
||||
* $Id: nfs_subs.c,v 1.58 1998/05/31 18:09:18 peter Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -866,8 +866,10 @@ nfsm_uiotombuf(uiop, mq, siz, bpos)
|
||||
int uiosiz, clflg, rem;
|
||||
char *cp;
|
||||
|
||||
#ifdef DIAGNOSTIC
|
||||
if (uiop->uio_iovcnt != 1)
|
||||
panic("nfsm_uiotombuf: iovcnt != 1");
|
||||
#endif
|
||||
|
||||
if (siz > MLEN) /* or should it >= MCLBYTES ?? */
|
||||
clflg = 1;
|
||||
@ -1034,7 +1036,7 @@ nfsm_strtmbuf(mb, bpos, cp, siz)
|
||||
const char *cp;
|
||||
long siz;
|
||||
{
|
||||
register struct mbuf *m1 = 0, *m2;
|
||||
register struct mbuf *m1 = NULL, *m2;
|
||||
long left, xfer, len, tlen;
|
||||
u_long *tl;
|
||||
int putsize;
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95
|
||||
* $Id: nfs_subs.c,v 1.57 1998/05/31 17:48:04 peter Exp $
|
||||
* $Id: nfs_subs.c,v 1.58 1998/05/31 18:09:18 peter Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -866,8 +866,10 @@ nfsm_uiotombuf(uiop, mq, siz, bpos)
|
||||
int uiosiz, clflg, rem;
|
||||
char *cp;
|
||||
|
||||
#ifdef DIAGNOSTIC
|
||||
if (uiop->uio_iovcnt != 1)
|
||||
panic("nfsm_uiotombuf: iovcnt != 1");
|
||||
#endif
|
||||
|
||||
if (siz > MLEN) /* or should it >= MCLBYTES ?? */
|
||||
clflg = 1;
|
||||
@ -1034,7 +1036,7 @@ nfsm_strtmbuf(mb, bpos, cp, siz)
|
||||
const char *cp;
|
||||
long siz;
|
||||
{
|
||||
register struct mbuf *m1 = 0, *m2;
|
||||
register struct mbuf *m1 = NULL, *m2;
|
||||
long left, xfer, len, tlen;
|
||||
u_long *tl;
|
||||
int putsize;
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95
|
||||
* $Id: nfs_subs.c,v 1.57 1998/05/31 17:48:04 peter Exp $
|
||||
* $Id: nfs_subs.c,v 1.58 1998/05/31 18:09:18 peter Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -866,8 +866,10 @@ nfsm_uiotombuf(uiop, mq, siz, bpos)
|
||||
int uiosiz, clflg, rem;
|
||||
char *cp;
|
||||
|
||||
#ifdef DIAGNOSTIC
|
||||
if (uiop->uio_iovcnt != 1)
|
||||
panic("nfsm_uiotombuf: iovcnt != 1");
|
||||
#endif
|
||||
|
||||
if (siz > MLEN) /* or should it >= MCLBYTES ?? */
|
||||
clflg = 1;
|
||||
@ -1034,7 +1036,7 @@ nfsm_strtmbuf(mb, bpos, cp, siz)
|
||||
const char *cp;
|
||||
long siz;
|
||||
{
|
||||
register struct mbuf *m1 = 0, *m2;
|
||||
register struct mbuf *m1 = NULL, *m2;
|
||||
long left, xfer, len, tlen;
|
||||
u_long *tl;
|
||||
int putsize;
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95
|
||||
* $Id: nfs_subs.c,v 1.57 1998/05/31 17:48:04 peter Exp $
|
||||
* $Id: nfs_subs.c,v 1.58 1998/05/31 18:09:18 peter Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -866,8 +866,10 @@ nfsm_uiotombuf(uiop, mq, siz, bpos)
|
||||
int uiosiz, clflg, rem;
|
||||
char *cp;
|
||||
|
||||
#ifdef DIAGNOSTIC
|
||||
if (uiop->uio_iovcnt != 1)
|
||||
panic("nfsm_uiotombuf: iovcnt != 1");
|
||||
#endif
|
||||
|
||||
if (siz > MLEN) /* or should it >= MCLBYTES ?? */
|
||||
clflg = 1;
|
||||
@ -1034,7 +1036,7 @@ nfsm_strtmbuf(mb, bpos, cp, siz)
|
||||
const char *cp;
|
||||
long siz;
|
||||
{
|
||||
register struct mbuf *m1 = 0, *m2;
|
||||
register struct mbuf *m1 = NULL, *m2;
|
||||
long left, xfer, len, tlen;
|
||||
u_long *tl;
|
||||
int putsize;
|
||||
|
Loading…
Reference in New Issue
Block a user