Declare read-only parameters const
Signal callers arguments are not going to be modified and allow passing const pointers.
This commit is contained in:
committed by
Serge Hallyn
parent
0fe4128ee6
commit
e32b4a9a81
@ -25,7 +25,7 @@
|
||||
* If the range is valid, getrange returns 1.
|
||||
* If the range is not valid, getrange returns 0.
|
||||
*/
|
||||
int getrange (char *range,
|
||||
int getrange (const char *range,
|
||||
unsigned long *min, bool *has_min,
|
||||
unsigned long *max, bool *has_max)
|
||||
{
|
||||
|
Reference in New Issue
Block a user