Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site jplgodo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!tektronix!hplabs!sdcrdcf!usc-oberon!smeagol!jplgodo!steve From: steve@jplgodo.UUCP (Steve Schlaifer x3171 156/224) Newsgroups: net.lang.c Subject: Re: questions from using lint Message-ID: <760@jplgodo.UUCP> Date: Fri, 11-Apr-86 13:20:49 EST Article-I.D.: jplgodo.760 Posted: Fri Apr 11 13:20:49 1986 Date-Received: Fri, 18-Apr-86 04:00:20 EST References: <7097@cca.UUCP> Organization: Jet Propulsion Labs, Pasadena, CA Lines: 51 Summary: no complaints here In article <7097@cca.UUCP>, dewitt@cca.UUCP (Mark DeWitt) writes: > I have three questions, the first of which was only brought to my > attention by lint, not caused by it. > > ............. question 1 deleted > > 2. With the following code-- > static int page; > > ioctl(0, SOMEINTEGER, (char *)&page); > or > ioctl(0, SOMEINTEGER, (char *)(&page)); > > lint says: > > warning: illegal pointer combination. > > ......... question 3 deleted > When I lint the following on a Ridge 32C under ROS 3.3 (SYSV derivative), #include main() { static int page; ioctl(0,2,(char *)(&page)); } I get test.c ============== (7) warning: main() returns random value to invocation environment ============== function returns value which is always ignored ioctl Note that there are no pointer complaints. Sounds like you have a problem on your system. If lint complains about the sample above, I would complain to the vender. -- ...smeagol\ Steve Schlaifer ......wlbr->!jplgodo!steve Advance Projects Group, Jet Propulsion Labs ....group3/ 4800 Oak Grove Drive, M/S 156/204 Pasadena, California, 91109 +1 818 354 3171