openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/libnss-mdns/0.10-r7/nss-mdns-0.10/src/util.c
void timeval_add(struct timeval* tv, usec_t v)
{
    unsigned long secs;
    assert(tv);

    secs = (v / 1000000);
    tv->tv_sec += (unsigned long)secs;
    v -= secs * 1000000;

    tv->tv_usec += v;

    /* Normalize */
    while (tv->tv_usec >= 1000000)
    {
        tv->tv_sec++;
        tv->tv_usec -= 1000000;
    }
}
/* Add the specified time inmicroseconds to the specified timeval structure */
Add the specified time inmicroseconds to the specified timeval structure
Add the specified time inmicroseconds to the specified timeval structure
void timeval_add(struct timeval* tv, usec_t v)
{
    unsigned long secs;
    assert(tv);
    secs = (v / 1000000);
    tv->tv_sec += (unsigned long)secs;
    v -= secs * 1000000;
    tv->tv_usec += v;
    while (tv->tv_usec >= 1000000)
    {
        tv->tv_sec++;
        tv->tv_usec -= 1000000;
    }
}
void timeval_add ( struct timeval * tv , usec_t v ) { unsigned long secs ; assert ( tv ) ; secs = ( v / 1000000 ) ; tv -> tv_sec += ( unsigned long ) secs ; v -= secs * 1000000 ; tv -> tv_usec += v ; while ( tv -> tv_usec >= 1000000 ) { tv -> tv_sec ++ ; tv -> tv_usec -= 1000000 ; } }
Add the specified time inmicroseconds to the specified timeval structure
Add the specified time inmicroseconds to the specified timeval structure
/* Normalize */