* lib/prototypes.h, libmisc/list.c: dup_list() and is_on_list() do
not change the members of the list they receive. Added const qualifiers.
This commit is contained in:
@ -141,7 +141,7 @@
|
||||
return tmp;
|
||||
}
|
||||
|
||||
/*@only@*/ /*@out@*/char **dup_list (char *const *list)
|
||||
/*@only@*/ /*@out@*/char **dup_list (const char *const *list)
|
||||
{
|
||||
int i;
|
||||
char **tmp;
|
||||
@ -163,7 +163,7 @@
|
||||
return tmp;
|
||||
}
|
||||
|
||||
bool is_on_list (char *const *list, const char *member)
|
||||
bool is_on_list (const char *const *list, const char *member)
|
||||
{
|
||||
assert (NULL != member);
|
||||
assert (NULL != list);
|
||||
|
Reference in New Issue
Block a user