Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rochester!cornell!batcomputer!hurf From: hurf@batcomputer.tn.cornell.edu (Hurf Sheldon) Newsgroups: comp.lang.c Subject: 'incompatble types error'- help needed Message-ID: <1524@batcomputer.tn.cornell.edu> Date: Thu, 25-Jun-87 09:50:46 EDT Article-I.D.: batcompu.1524 Posted: Thu Jun 25 09:50:46 1987 Date-Received: Sat, 27-Jun-87 03:56:34 EDT Reply-To: hurf@tcgould.tn.cornell.edu (Hurf Sheldon) Distribution: world Organization: Cornell Theory Center, Cornell University, Ithaca NY Lines: 22 Under Ultrix(DEC) and UTX(Gould) I get a compiler (and lint) error about unacceptable types that does no occur under 4.3bsd - I have looked at the pertinent include files on 4.3 and Ultrix and they are identical as far as my problem is concerned. the problem (from tn3270's telnet.c) sin.sin_addr.s_addr = inet_addr(argv[1]) causes the error " operands of = have incompatible types" where argv is declared char *argv[], 'sin.sin_addr.s_addr' is u_long (from include/netinet/in.h ) and inet_addr() is declared 'external unsigned long inet_addr();' in telnet.c Is there a way to get this past the compiler - I have tried a couple of (probably simplistic) redefines and they have made thing worse. thanks, hurf -- Hurf Sheldon Network: hurf@ionvax.tn.cornell.edu Lab of Plasma Studies Bitnet: hurf@CRNLION 369 Upson Hall, Cornell University, Ithaca, N.Y. 14853 ph:607 255 7267 I sold my Elan, got a job in science; Now, no one takes me seriously.