Date: Sun, 28 Oct 2001 11:23:51 -0800 (PST) From: Matthew Dillon <dillon@apollo.backplane.com> To: Jeroen Ruigrok/Asmodai <asmodai@wxs.nl> Cc: arch@FreeBSD.ORG Subject: Re: illegal &time_t useage in /usr/src Message-ID: <200110281923.f9SJNpI06845@apollo.backplane.com> References: <200110280638.f9S6cuA99947@apollo.backplane.com> <20011028102623.X96876@daemon.ninth-circle.org>
next in thread | previous in thread | raw e-mail | index | archive | help
:-On [20011028 08:00], Matthew Dillon (dillon@apollo.backplane.com) wrote: :>./contrib/binutils/bfd/elf32-mips.c: unmodified: line 8584 of 9049 [94%] :>./contrib/gcc/mips-tdump.c: unmodified: line 776 of 1606 [48%] :>./contrib/ipfilter/ipmon.c: unmodified: line 496 of 1282 [38%] :>./contrib/ipfilter/ipmon.c: unmodified: line 717 of 1282 [55%] :>./contrib/gcc.295/mips-tdump.c: unmodified: line 776 of 1606 [48%] :> :>./crypto/heimdal/appl/dceutils/k5dcecon.c: unmodified: line 186 of 791 [23%] :> (krb5_timestamp is a krb5_int32) : :Any chance of committing this script to src/tools? : :-- :Jeroen Ruigrok van der Werven/Asmodai asmodai@[wxs.nl|freebsd.org|xmach.org] Kinda hard to commit a human being :-) Something like the below, reidrect the output to a file and then go vi `cat filename` and run through the cases manually. #!/bin/tcsh # # (expected to be in /usr/src) foreach i ( `find . -type f -name "*.c" -or -name "*.h"` ) fgrep '(time_t *)' $i >& /dev/null if ( $status == 0 ) then echo $i endif end Repeat for instances of 'localtime', 'ctime', and 'time (' or 'time(' (for which there are hundreds). -Matt Matthew Dillon <dillon@backplane.com> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110281923.f9SJNpI06845>