[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4C839797.50607@computer.org>
Date: Sun, 05 Sep 2010 15:13:59 +0200
From: Jan Ceuleers <jan.ceuleers@...puter.org>
To: Thomas Habets <thomas@...ets.pp.se>
CC: netdev@...r.kernel.org
Subject: Re: [PATCH] iputils ping,ping6: use monotonic clock to schedule pings
On 05/09/10 14:58, Thomas Habets wrote:
> +int
> +getclock(struct timeval *tv)
> +{
> +#ifdef CLOCK_MONOTONIC
> + struct timespec ts;
> + if (!clock_gettime(CLOCK_MONOTONIC, &ts)) {
> + tv->tv_sec = ts.tv_sec;
> + tv->tv_usec = ts.tv_nsec / 1000;
> + return;
> + }
> +#endif
Don't you need a return value there?
Jan
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists