Declare read-only parameters const

Signal callers arguments are not going to be modified and allow passing
const pointers.
This commit is contained in:
Christian Göttsche authored and Serge Hallyn committed 2022-08-06 11:27:56 -05:00
1 parent 0fe4128ee6
commit e32b4a9a81
6 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -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);