Martin Lambers <[EMAIL PROTECTED]> writes:

> The patch is mostly a recombination of code written by Jim Meyering and
> Bruno Haible, so there should by no copyright problem when including
> this into gnulib.

Hmm, I suspect that it's enough extra work that we'll need papers from
you.  Would you be willing to assign the copyright to the Free Software
Foundation, so that we could install it in gnulib?

> +  if (tp != NULL)
> +    {
> +#ifdef _WIN32    
> +      struct _timeb timebuf;
> +      _ftime (&timebuf);
> +      tp->tv_sec = timebuf.time;
> +      tp->tv_usec = (long)(timebuf.millitm) * (1000000/1000);
> +#else    
> +      tp->tv_sec = time (NULL);
> +      tp->tv_usec = 0;
> +#endif
> +    }

You don't need to check whether tp is NULL.  Gettimeofday can assume
its first arg is NULL.

Assuming we can resolve the copyright issues it otherwise looks good to me.
(Though I can't comment on the Microsoft Windows stuff.)


_______________________________________________
bug-gnulib mailing list
bug-gnulib@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnulib

Reply via email to