register_inprogress (struct dns_transmit *d)
{
    int i = 0;

    for (i = 0; i < MAXUDP; i++)
    {
        if (!inprogress[i])
        {
            inprogress[i] = d;
            return;
        }
    }

    errx (-1, "BUG: out of in progress slots");
}
register_inprogress (struct dns_transmit *d)
{
    int i = 0;

    for (i = 0; i < MAXUDP; i++)
    {
        if (!inprogress[i])
        {
            inprogress[i] = d;
            return;
        }
    }

    errx (-1, "BUG: out of in progress slots");
}