Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!uakari.primate.wisc.edu!caen!hellgate.utah.edu!csn!bernard@boulder.colorado.edu From: bernard@boulder.colorado.edu (Bernie Bernstein) Newsgroups: comp.sys.mac.programmer Subject: Re: SUMMARY: Trying to use MacTCP with THINK LSC 3.02 - no solution yet. Message-ID: <1991Jan9.222430.549@csn.org> Date: 9 Jan 91 22:24:30 GMT References: <1991Jan09.042652.28018@comp.vuw.ac.nz> <1991Jan9.140919.2757@nada.kth.se> Sender: news@csn.org Organization: University of Colorado Lines: 27 Nntp-Posting-Host: csgator3.colorado.edu In article <1991Jan9.140919.2757@nada.kth.se>, mattiasb@dront.nada.kth.se (Mattias Berglund) writes: > > * In the include file "AddressXlation.h" the struct hostInfo misses a > vital field: > > typedef struct hostInfo { > int rtnCode; > char cname[255]; > > short numAddrs; /*** Ooops, someone missed this one... ***/ > unsigned long addr[NUM_ALT_ADDRS]; > }; > typedef struct hostInfo { long rtnCode; /*** This is all I needed to do to fix it ***/ char cname[255]; unsigned long addr[NUM_ALT_ADDRS]; }; I haven't had problems with the hostInfo struct except for the int. These C libraries should use short and long instead of int for the obvious reasons. I like to have code that can work in Think C or in MPW. Bernie Bernstein bernard@boulder.colorado.edu