Path: utzoo!utgpu!water!watmath!clyde!cbosgd!osu-cis!tut!lvc From: lvc@tut.cis.ohio-state.edu (Lawrence V. Cipriani) Newsgroups: comp.lang.c Subject: Re: lint vs `= vs ==' Summary: two bugs & one fix for lint Message-ID: <4710@tut.cis.ohio-state.edu> Date: 16 Jan 88 13:45:02 GMT References: <10190@mimsy.UUCP> Organization: Ohio State Computer & Info Science Lines: 29 In article <10190@mimsy.UUCP>, chris@mimsy.UUCP (Chris Torek) writes: > Here, in reverse chronological order, are three related changes to > lint. ...like it says... While we are posting fixes for lint, here is an amusing one: In the lpass2.c file around line 499 (depending on your version of lint) there is: if( (t=BTYPE(pt1->aty)==STRTY) || t==UNIONTY ){ suggested change: if( (t=BTYPE(pt1->aty))==STRTY || t==UNIONTY ){ If you have the following chdir call in a C file, svr2 lint does not complain about the type mismatch, however, bsd 4.2 lint flags it correctly. chdir('/'); > In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) > Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris -- Larry Cipriani - using a guest account at lvc@tut.cis.ohio-state.edu a.k.a. ...!cbosgd!osu-cis!tut.cis.ohio-state.edu!lvc