main.c
/*
 * Add a local TAL file (RFC 7730) to the queue of files to fetch.
 */
Add a local TAL file (RFC 7730) to the queue of files to fetch.
Add a local TAL file ( RFC 7730 ) to the queue of files to fetch .
static void
queue_add_tal(int fd, struct entityq *q, const char *file, size_t *eid)
{
	char	*nfile, *buf;
	if ((nfile = strdup(file)) == NULL)
		err(1, "strdup");
	buf = tal_read_file(file);
	entityq_add(fd, q, nfile, RTYPE_TAL, NULL, NULL, NULL, 0, buf, eid);
	free(buf);
}
static void queue_add_tal ( int fd , struct entityq * q , const char * file , size_t * eid ) { char * nfile , * buf ; if ( ( nfile = strdup ( file ) ) == NULL ) err ( 1 , " " ) ; buf = tal_read_file ( file ) ; entityq_add ( fd , q , nfile , RTYPE_TAL , NULL , NULL , NULL , 0 , buf , eid ) ; free ( buf ) ; }
Add a local TAL file (RFC 7730) to the queue of files to fetch.
Add a local TAL file ( RFC 7730 ) to the queue of files to fetch .
/* Not in a repository, so directly add to queue. */ /* entityq_add makes a copy of buf */