Re: [PATCH] Some clean up of the time code.

Andrew Morton (akpm@digeo.com)
Mon, 9 Jun 2003 18:22:13 -0700


george anzinger <george@mvista.com> wrote:
>
> -void do_settimeofday(struct timeval *tv)
> +int do_settimeofday(struct timespec *tv)
> {
> + if ((unsigned long)tv->tv_nsec > NSEC_PER_SEC)
> + return -EINVAL;
> +

Should that be ">="?

Is there any reasonable way to avoid breaking existing
do_settimeofday() implementations? That's just more grief all round.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/