mirror of
https://github.com/nmap/nmap.git
synced 2026-02-11 07:56:35 +00:00
Remove extra const qualifiers.
Some function declared parameters like this: int f(const char * const s) Where appropriate, I changed to int f(const char *s) The second const is a qualifier on the pointer itself; i.e., the value of s may not be changed (may not be made to point to anything else) within the function. This is probably not what was intended. The first const is what prevents modifying things referenced through s.
This commit is contained in:
@@ -118,7 +118,7 @@ void TargetGroup::Initialize() {
|
||||
/* Initializes (or reinitializes) the object with a new expression, such
|
||||
as 192.168.0.0/16 , 10.1.0-5.1-254 , or fe80::202:e3ff:fe14:1102 .
|
||||
Returns 0 for success */
|
||||
int TargetGroup::parse_expr(const char * const target_expr, int af) {
|
||||
int TargetGroup::parse_expr(const char *target_expr, int af) {
|
||||
|
||||
int i=0,j=0,k=0;
|
||||
int start, end;
|
||||
|
||||
Reference in New Issue
Block a user