diff options
author | Jason Stubbs <jstubbs@gentoo.org> | 2004-11-20 14:51:42 +0000 |
---|---|---|
committer | Jason Stubbs <jstubbs@gentoo.org> | 2004-11-20 14:51:42 +0000 |
commit | b7d08a9a3fc640a05bcbca93b8c96129deff6e3a (patch) | |
tree | 61abad3faa715bd61d3cc1098a8de802cc1ff5e1 /src | |
parent | making filter-env active. (diff) | |
download | portage-cvs-b7d08a9a3fc640a05bcbca93b8c96129deff6e3a.tar.gz portage-cvs-b7d08a9a3fc640a05bcbca93b8c96129deff6e3a.tar.bz2 portage-cvs-b7d08a9a3fc640a05bcbca93b8c96129deff6e3a.zip |
Added qualifiers to bmh_search parameters and return type. Slightly
modified parameter type on main() to get rid of a warning.
Diffstat (limited to 'src')
-rw-r--r-- | src/filter-env/bmh_search.c | 4 | ||||
-rw-r--r-- | src/filter-env/bmh_search.h | 4 | ||||
-rw-r--r-- | src/filter-env/posix.c | 2 |
3 files changed, 3 insertions, 7 deletions
diff --git a/src/filter-env/bmh_search.c b/src/filter-env/bmh_search.c index 190bdfa..4d9f74c 100644 --- a/src/filter-env/bmh_search.c +++ b/src/filter-env/bmh_search.c @@ -5,9 +5,7 @@ aparently distributed by Addison-Wesley Publishing Co. Inc, http://aw.com/ #include <string.h> #define MAXCHAR 256 -char *bmh_search( pat, text, n ) -char *pat, *text; -int n; +const char *bmh_search( const char *pat, const char *text, int n ) { int i, j, k, m, skip[MAXCHAR]; m = strlen(pat); diff --git a/src/filter-env/bmh_search.h b/src/filter-env/bmh_search.h index e0eb706..e44fdff 100644 --- a/src/filter-env/bmh_search.h +++ b/src/filter-env/bmh_search.h @@ -2,6 +2,4 @@ aparently distributed by Addison-Wesley Publishing Co. Inc, http://aw.com/ */ -char *bmh_search(pat, text, n ); -//char *pat, *text; -//int n; +const char *bmh_search(const char *pat, const char *text, int n ); diff --git a/src/filter-env/posix.c b/src/filter-env/posix.c index 376a7ca..16749a3 100644 --- a/src/filter-env/posix.c +++ b/src/filter-env/posix.c @@ -38,7 +38,7 @@ const char *walk_command(const char *p, const char *end, char endchar, const cha static int debugging; int -main(int argc, const char **argv) +main(int argc, char *const *argv) { int fd = 0; char **funcs = NULL; char **vars = NULL; |