...
/* Read a timeout value from the given buffer and place it in ttr.
 * The interface and behavior are analogous to read_pri(). */
static int
read_ttr(usec *ttr, const char *buf, char **end)
{
    int r;
    unsigned int ttr_sec;

    r = read_pri(&ttr_sec, buf, end);
    if (r) return r;
    if (ttr_sec < 1) ttr_sec = 1;
    *ttr = ((usec) ttr_sec) * 1000000;
    return 0;
}
..

-- 
You received this message because you are subscribed to the Google Groups 
"beanstalk-talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/beanstalk-talk/-/3SkiIJMI6iQJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/beanstalk-talk?hl=en.

Reply via email to