FreeBSD/usr.sbin/jail/config.c
/*
 * Set an integer if a parameter if it exists.
 */
Set an integer if a parameter if it exists.
Set an integer if a parameter if it exists .
int
int_param(const struct cfparam *p, int *ip)
{
	if (p == NULL || TAILQ_EMPTY(&p->val))
		return 0;
	*ip = strtol(TAILQ_LAST(&p->val, cfstrings)->s, NULL, 10);
	return 1;
}
int int_param ( const struct cfparam * p , int * ip ) { if ( p == NULL || TAILQ_EMPTY ( & p -> val ) ) return 0 ; * ip = strtol ( TAILQ_LAST ( & p -> val , cfstrings ) -> s , NULL , 10 ) ; return 1 ; }
Set an integer if a parameter if it exists.
Set an integer if a parameter if it exists .