- sl_find does not modify 'name'
- make the prototype of sl_find match NetBSD Reviewed by: jilles Approved by: cperciva (mentor) MFC After: 3 days
This commit is contained in:
parent
240f872cb8
commit
d001beb260
@ -51,7 +51,7 @@ __BEGIN_DECLS
|
||||
StringList *sl_init(void);
|
||||
int sl_add(StringList *, char *);
|
||||
void sl_free(StringList *, int);
|
||||
char *sl_find(StringList *, char *);
|
||||
char *sl_find(StringList *, const char *);
|
||||
__END_DECLS
|
||||
|
||||
#endif /* _STRINGLIST_H */
|
||||
|
@ -49,7 +49,7 @@
|
||||
.Ft void
|
||||
.Fn sl_free "StringList *sl" "int freeall"
|
||||
.Ft char *
|
||||
.Fn sl_find "StringList *sl" "char *item"
|
||||
.Fn sl_find "StringList *sl" "const char *item"
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm
|
||||
|
@ -104,7 +104,7 @@ sl_free(StringList *sl, int all)
|
||||
* sl_find(): Find a name in the string list
|
||||
*/
|
||||
char *
|
||||
sl_find(StringList *sl, char *name)
|
||||
sl_find(StringList *sl, const char *name)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user