Simple cleanup, but I also changed the value of the dlevel parameter passed
authorChristopher R. Hertel <crh@samba.org>
Wed, 11 Oct 2000 16:24:20 +0000 (16:24 +0000)
committerChristopher R. Hertel <crh@samba.org>
Wed, 11 Oct 2000 16:24:20 +0000 (16:24 +0000)
commitf09cb41ad86b233253758de7ef2781589ac07b86
treeb7d156bec5151baab27c2c1937602aa042bed0db
parent56be7c2a49a8a918318a70843fff4e89ec10d0d3
Simple cleanup, but I also changed the value of the dlevel parameter passed
to open_socket_in() from within the open_sockets() function.  This has some
effect on the way port numbers are assigned.  Basically, if we use the -r
switch we are saying 'use port 137'.  If we can't do that, there should
be an error message and a failure.  If we don't use -r then we simply select
the first available port.  The way it was working, if we selected -r and
port 137 was in use, wierd things would happen as open_socket_in() tried to
find another port.
source/utils/nmblookup.c