FreeBSD/usr.sbin/jail/jail.c
/*
 * Print a parameter value, or a name=value pair.
 */
Print a parameter value, or a name=value pair.
Print a parameter value or a name = value pair .
static void
print_param(FILE *fp, const struct cfparam *p, int sep, int doname)
{
	const struct cfstring *s, *ts;
	if (doname)
		fputs(p->name, fp);
	if (p == NULL || TAILQ_EMPTY(&p->val))
		return;
	if (doname)
		putc('=', fp);
	TAILQ_FOREACH_SAFE(s, &p->val, tq, ts) {
		quoted_print(fp, s->s);
		if (ts != NULL)
			putc(sep, fp);
	}
}
static void print_param ( FILE * fp , const struct cfparam * p , int sep , int doname ) { const struct cfstring * s , * ts ; if ( doname ) fputs ( p -> name , fp ) ; if ( p == NULL || TAILQ_EMPTY ( & p -> val ) ) return ; if ( doname ) putc ( ' ' , fp ) ; TAILQ_FOREACH_SAFE ( s , & p -> val , tq , ts ) { quoted_print ( fp , s -> s ) ; if ( ts != NULL ) putc ( sep , fp ) ; } }
Print a parameter value, or a name=value pair.
Print a parameter value or a name = value pair .