FreeBSD/contrib/ntp/libntp/authkeys.c
/* allocate and populate new access node and pushes it on the list.
 * Returns the new head.
 */
allocate and populate new access node and pushes it on the list.
Returns the new head.
allocate and populate new access node and pushes it on the list . Returns the new head .
KeyAccT*
keyacc_new_push(
	KeyAccT          * head,
	const sockaddr_u * addr
	)
{
	KeyAccT *	node = emalloc(sizeof(KeyAccT));
	memcpy(&node->addr, addr, sizeof(sockaddr_u));
	node->next = head;
	return node;
}
KeyAccT * keyacc_new_push ( KeyAccT * head , const sockaddr_u * addr ) { KeyAccT * node = emalloc ( sizeof ( KeyAccT ) ) ; memcpy ( & node -> addr , addr , sizeof ( sockaddr_u ) ) ; node -> next = head ; return node ; }
allocate and populate new access node and pushes it on the list.
allocate and populate new access node and pushes it on the list .