mirror of
https://github.com/nmap/nmap.git
synced 2026-10-20 19:01:56 +00:00
Remove dead asserts.
I believe the purpose of these asserts was to quiet a compiler warning in r24309, but the rest of that revision (marking fatal as a non-returning function) should do the job.
This commit is contained in:
parent
1f31f2e991
commit
8ab0096609
2 changed files with 0 additions and 6 deletions
3
tcpip.cc
3
tcpip.cc
|
|
@ -535,9 +535,6 @@ int send_ip_packet(int sd, const struct eth_nfo *eth,
|
|||
}
|
||||
|
||||
fatal("%s only understands IP versions 4 and 6 (got %u)", __func__, ip->ip_v);
|
||||
|
||||
/* This should not be reached. Just in case. */
|
||||
assert(0);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -729,9 +729,6 @@ public:
|
|||
} else {
|
||||
fatal("Unknown address family %u in %s.", source->ss_family, __func__);
|
||||
}
|
||||
|
||||
/* This should not be reached. Just in case. */
|
||||
assert(0);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue