FreeBSD/sbin/hastd/nv.c
/*
 * Set error for the given nv structure and return previous error.
 */
Set error for the given nv structure and return previous error.
Set error for the given nv structure and return previous error .
int
nv_set_error(struct nv *nv, int error)
{
	int preverr;
	if (nv == NULL)
		return (ENOMEM);
	NV_CHECK(nv);
	preverr = nv->nv_error;
	nv->nv_error = error;
	return (preverr);
}
int nv_set_error ( struct nv * nv , int error ) { int preverr ; if ( nv == NULL ) return ( ENOMEM ) ; NV_CHECK ( nv ) ; preverr = nv -> nv_error ; nv -> nv_error = error ; return ( preverr ) ; }
Set error for the given nv structure and return previous error.
Set error for the given nv structure and return previous error .