[453] in Athena Bugs

home help back first fref pref prev next nref lref last post

C Library lint library (VAX 6.0B)

daemon@ATHENA.MIT.EDU (John T Kohl)
Thu Jun 23 12:24:36 1988

Date: Thu, 23 Jun 88 12:23:58 EDT
From: John T Kohl <jtkohl@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU, vs-testers@ATHENA.MIT.EDU
Another problem has shown up in the C lint library.

The entry for localtime is:
struct	tm *localtime(c) long *c; { return localtime(c); }

Using localtime correctly will produce the message:
localtime value used inconsistently	llib-lc(286)	::	filename.c(lno)

If the localtime entry is changed to:
struct	tm *localtime(c) long *c; { return (struct tm *) 0; }

it doesn't barf.
 
John

home help back first fref pref prev next nref lref last post