linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* man gettimeofday: first arg cannot be NULL
@ 2010-03-10 16:58 fkater-gM/Ye1E23mwN+BqQ9rBEUg
  2012-04-17 18:41 ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 2+ messages in thread
From: fkater-gM/Ye1E23mwN+BqQ9rBEUg @ 2010-03-10 16:58 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hi,

in man 2 gettimeofday (2009-03-25), section DESCRIPTION, it
is said:

"If either tv or tz is NULL, ..."

However, if the first arg is NULL, the compiler (gcc 4.3.4)
issues a warning that it shouldn't be NULL.

 Felix


--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: man gettimeofday: first arg cannot be NULL
  2010-03-10 16:58 man gettimeofday: first arg cannot be NULL fkater-gM/Ye1E23mwN+BqQ9rBEUg
@ 2012-04-17 18:41 ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2012-04-17 18:41 UTC (permalink / raw)
  To: fkater-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
  Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

On Thu, Mar 11, 2010 at 5:58 AM, fkater-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
<fkater-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:
> Hi,
>
> in man 2 gettimeofday (2009-03-25), section DESCRIPTION, it
> is said:
>
> "If either tv or tz is NULL, ..."
>
> However, if the first arg is NULL, the compiler (gcc 4.3.4)
> issues a warning that it shouldn't be NULL.

True. For man-pages-3.39, I added this text to the man page:

==
(However, compilation warnings will result if
.I tv
is NULL.)
==

Cheers,

Michael

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-17 18:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-10 16:58 man gettimeofday: first arg cannot be NULL fkater-gM/Ye1E23mwN+BqQ9rBEUg
2012-04-17 18:41 ` Michael Kerrisk (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).