tcpdump mailing list archives

Re: Date format patch


From: Guy Harris <gharris () sonic net>
Date: Sun, 2 Mar 2003 17:30:01 -0800

On Mon, Mar 03, 2003 at 02:18:58AM +0100, Gisle Vanem wrote:
So, with all the incompatible locale implementation, maybe the patch 
isn't such a good idea.  How about hardcoding for ISO-9601 instead
(YYYY-MM-DD) ?

Sounds good to me.

BTW. The "struct tm tm_copy = *tm" line would break on a pre-ANSI 
compiler, right? I assume tcpdump doesn't handle those (?)

Well, we don't handle compilers without prototypes; there might be some
pre-ANSI compilers with function prototype support on systems on which
somebody would want to compile tcpdump, but there probably aren't very
many of them.

If you're referring to structure assignment, though, that antedates the
ANSI C standard; the first edition of K&R might not have mentioned it,
but it was in the Ritchie C compiler in V7, as I remember, as well as
PCC.
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe


Current thread: