FreeBSD/sys/boot/powerpc/ps3/devicename.c
/*
 * Set currdev to suit the value being supplied in (value).
 */
Set currdev to suit the value being supplied in (value).
Set currdev to suit the value being supplied in ( value ) .
int
ps3_setcurrdev(struct env_var *ev, int flags, const void *value)
{
	struct ps3_devdesc *ncurr;
	int rv;
	if ((rv = ps3_parsedev(&ncurr, value, NULL)) != 0)
		return (rv);
	free(ncurr);
	env_setenv(ev->ev_name, flags | EV_NOHOOK, value, NULL, NULL);
	return (0);
}
int ps3_setcurrdev ( struct env_var * ev , int flags , const void * value ) { struct ps3_devdesc * ncurr ; int rv ; if ( ( rv = ps3_parsedev ( & ncurr , value , NULL ) ) != 0 ) return ( rv ) ; free ( ncurr ) ; env_setenv ( ev -> ev_name , flags | EV_NOHOOK , value , NULL , NULL ) ; return ( 0 ) ; }
Set currdev to suit the value being supplied in (value).
Set currdev to suit the value being supplied in ( value ) .