summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2013-04-23 13:03:03 +0000
committereadler <eadler@FreeBSD.org>2013-04-23 13:03:03 +0000
commit4af79ccd602e497469d337b07a2bff0a1115a2a7 (patch)
tree73c476a4a4cd8fd4bf615d9c658aeee3f88c0aeb /lib/libc
parent743330219f4ea0c9243167000ca5a4ad2dd1280e (diff)
downloadFreeBSD-src-4af79ccd602e497469d337b07a2bff0a1115a2a7.zip
FreeBSD-src-4af79ccd602e497469d337b07a2bff0a1115a2a7.tar.gz
- 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
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/stringlist.32
-rw-r--r--lib/libc/gen/stringlist.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/stringlist.3 b/lib/libc/gen/stringlist.3
index 82465b6..d4480be 100644
--- a/lib/libc/gen/stringlist.3
+++ b/lib/libc/gen/stringlist.3
@@ -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
diff --git a/lib/libc/gen/stringlist.c b/lib/libc/gen/stringlist.c
index 9f3c3e8..a09a8e7 100644
--- a/lib/libc/gen/stringlist.c
+++ b/lib/libc/gen/stringlist.c
@@ -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;
OpenPOWER on IntegriCloud