diff options
author | peter <peter@FreeBSD.org> | 1999-12-10 17:38:41 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-12-10 17:38:41 +0000 |
commit | 7cd6c4d188847b8167e9a9e05ad034f5d51a13df (patch) | |
tree | 163f9248d3dedff4434849e33fd82e432ddbc804 /sys/kern | |
parent | 108333f0a453421722555eb52a232a10bd5c4c77 (diff) | |
download | FreeBSD-src-7cd6c4d188847b8167e9a9e05ad034f5d51a13df.zip FreeBSD-src-7cd6c4d188847b8167e9a9e05ad034f5d51a13df.tar.gz |
Zap c_index() and c_rindex(). Bruce prefers these to implicitly convert
a const into a non-const as they do in libc. I feel that defeating the
type checking like that quite evil, but that's the way it is.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_linker.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c index f8054ca..9262e54 100644 --- a/sys/kern/kern_linker.c +++ b/sys/kern/kern_linker.c @@ -345,7 +345,7 @@ linker_make_file(const char* pathname, void* priv, struct linker_file_ops* ops) int namelen; const char *filename; - filename = c_rindex(pathname, '/'); + filename = rindex(pathname, '/'); if (filename && filename[1]) filename++; else @@ -993,7 +993,7 @@ linker_search_path(const char *name) enum vtype type; /* qualified at all? */ - if (c_index(name, '/')) + if (index(name, '/')) return(linker_strdup(name)); /* traverse the linker path */ |