innd MyAddress varaible
Russ Allbery
rra at stanford.edu
Sat Feb 16 19:39:38 UTC 2002
Jeffrey M Vinocur <jeff at litech.org> writes:
> We've got some confusion about a variable that doesn't appear to be set.
> From CURRENT:
> inn > find . -type f -name '*.[ch]' | xargs grep MyAddress
> ./innd/chan.c: CHANnull.Address.s_addr = MyAddress.s_addr;
> ./innd/innd.h:EXTERN struct in_addr MyAddress;
> ./innd/lc.c: new->Address.s_addr = MyAddress.s_addr;
> So are we missing something obvious, or is this a bug of some sort? And
> if so, what is this variable supposed to be doing?
Believe it or not, this has been completely unchanged since INN 1.0. :)
I believe that when innd.h gets included by innd.c, (with EXTERN defined
to be nothing), it gets declared as a static global and hence gets
initialized to all zeroes, so I think that the above assignments are
basically equivalent to = 0. Feel free to make MyAddress go away.
--
Russ Allbery (rra at stanford.edu) <http://www.eyrie.org/~eagle/>
More information about the inn-workers
mailing list