All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Ceuleers <jan.ceuleers@computer.org>
To: Thomas Habets <thomas@habets.pp.se>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] iputils ping,ping6: use monotonic clock to schedule pings
Date: Sun, 05 Sep 2010 15:13:59 +0200	[thread overview]
Message-ID: <4C839797.50607@computer.org> (raw)
In-Reply-To: <alpine.DEB.1.10.1009051453090.13886@red.crap.retrofitta.se>

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

  reply	other threads:[~2010-09-05 13:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-05 12:58 [PATCH] iputils ping,ping6: use monotonic clock to schedule pings Thomas Habets
2010-09-05 13:13 ` Jan Ceuleers [this message]
2010-09-05 13:25   ` Thomas Habets
2010-09-21  5:40     ` YOSHIFUJI Hideaki
2010-09-21  6:50       ` Thomas Habets

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C839797.50607@computer.org \
    --to=jan.ceuleers@computer.org \
    --cc=netdev@vger.kernel.org \
    --cc=thomas@habets.pp.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.