/* Adjust path: If you specify a default route and want to connect a target on the digipeater path but w/o having a special route set before, the path has to be truncated from your target on.  */
static void ax25_adjust_path(ax25_address *addr, ax25_digi *digipeat)
/* Adjust path: If you specify a default route and want to connect a target on the digipeater path but w/o having a special route set before, the path has to be truncated from your target on.  */
static void ax25_adjust_path(ax25_address *addr, ax25_digi *digipeat)
{
	int k;
	for (k = 0; k < digipeat->ndigi; k++) {
		if (ax25cmp(addr, &digipeat->calls[k]) == 0)
			break;
	}
	digipeat->ndigi = k;
}