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
@ -159,7 +159,7 @@ extern int getlong (const char *numstr, /*@out@*/long int *result);
|
||||
extern int get_pid (const char *pidstr, pid_t *pid);
|
||||
|
||||
/* getrange */
|
||||
extern int getrange (char *range,
|
||||
extern int getrange (const char *range,
|
||||
unsigned long *min, bool *has_min,
|
||||
unsigned long *max, bool *has_max);
|
||||
|
||||
|
Reference in New Issue
Block a user