mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Remove some unnecessary unsigned qualifiers (newstate is defined as int in most places)
This commit is contained in:
parent
96e17c4f63
commit
c978ba14ca
2 changed files with 2 additions and 2 deletions
2
Target.h
2
Target.h
|
|
@ -321,7 +321,7 @@ class Target {
|
|||
PortList ports;
|
||||
|
||||
int weird_responses; /* echo responses from other addresses, Ie a network broadcast address */
|
||||
unsigned int flags; /* HOST_UNKNOWN, HOST_UP, or HOST_DOWN. */
|
||||
int flags; /* HOST_UNKNOWN, HOST_UP, or HOST_DOWN. */
|
||||
struct timeout_info to;
|
||||
char *hostname; // Null if unable to resolve or unset
|
||||
char * targetname; // The name of the target host given on the command line if it is a named host
|
||||
|
|
|
|||
|
|
@ -2031,7 +2031,7 @@ static const char *readhoststate(int state) {
|
|||
Returns true if the state was changed. */
|
||||
static bool ultrascan_host_pspec_update(UltraScanInfo *USI, HostScanStats *hss,
|
||||
const probespec *pspec, int newstate) {
|
||||
unsigned int oldstate = hss->target->flags;
|
||||
int oldstate = hss->target->flags;
|
||||
/* If the host is already up, ignore any further updates. */
|
||||
if (hss->target->flags != HOST_UP) {
|
||||
assert(newstate == HOST_UP || newstate == HOST_DOWN);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue