common/tables.c
/* Must match hash_reference/dereference types in omapip/hash.h. */
Must match hash_reference/dereference types in omapip/hash.h.
Must match hash_reference / dereference types in omapip / hash . h .
int
option_reference(struct option **dest, struct option *src,
	         const char * file, int line)
{
	if (!dest || !src)
	        return DHCP_R_INVALIDARG;
	if (*dest) {
#if defined(POINTER_DEBUG)
	        log_fatal("%s(%d): reference store into non-null pointer!",
	                  file, line);
#else
	        return DHCP_R_INVALIDARG;
#endif
	}
	*dest = src;
	src->refcnt++;
	rc_register(file, line, dest, src, src->refcnt, 0, RC_MISC);
	return(ISC_R_SUCCESS);
}
int option_reference ( struct option * * dest , struct option * src , const char * file , int line ) { if ( ! dest || ! src ) return DHCP_R_INVALIDARG ; if ( * dest ) { #if defined ( POINTER_DEBUG ) log_fatal ( " " , file , line ) ; #else return DHCP_R_INVALIDARG ; #endif } * dest = src ; src -> refcnt ++ ; rc_register ( file , line , dest , src , src -> refcnt , 0 , RC_MISC ) ; return ( ISC_R_SUCCESS ) ; }
Must match hash_reference/dereference types in omapip/hash.h.
Must match hash_reference / dereference types in omapip / hash . h .