Re: lint and syslog

2011-06-18 Thread Todd C. Miller
On Sat, 18 Jun 2011 00:42:30 EDT, Ted Unangst wrote: lint does not understand the %m format, leading to false positives. The too few format args is one of the important ones, IMO, so we should try to make it accurate. That seems reasonable but I think you want to treat %m like %%. That way

lint and syslog

2011-06-17 Thread Ted Unangst
lint does not understand the %m format, leading to false positives. The too few format args is one of the important ones, IMO, so we should try to make it accurate. The diff below teaches lint that %m does not consume arguments. Index: lint2/chk.c