diff options
author | delphij <delphij@FreeBSD.org> | 2013-01-04 23:44:22 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2013-01-04 23:44:22 +0000 |
commit | afd567e6cf4cc835ad967fddcfcf72330c3467c9 (patch) | |
tree | d188b2a7287da15fe64d39f7787732d654b49de3 /usr.bin | |
parent | 584529bfc82c8db9049f4b3ca44c3d0fa6a90142 (diff) | |
download | FreeBSD-src-afd567e6cf4cc835ad967fddcfcf72330c3467c9.zip FreeBSD-src-afd567e6cf4cc835ad967fddcfcf72330c3467c9.tar.gz |
Constify arguments. While I'm there, also add a static for usage().
MFC after: 2 weeks
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/apply/apply.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/apply/apply.c b/usr.bin/apply/apply.c index f63ba31..c886660 100644 --- a/usr.bin/apply/apply.c +++ b/usr.bin/apply/apply.c @@ -55,7 +55,7 @@ __FBSDID("$FreeBSD$"); #define EXEC "exec " -static int exec_shell(const char *, char *, char *); +static int exec_shell(const char *, const char *, const char *); static void usage(void); int @@ -222,7 +222,7 @@ main(int argc, char *argv[]) * arguments. */ static int -exec_shell(const char *command, char *use_shell, char *use_name) +exec_shell(const char *command, const char *use_shell, const char *use_name) { pid_t pid; int omask, pstat; @@ -250,7 +250,7 @@ exec_shell(const char *command, char *use_shell, char *use_name) return(pid == -1 ? -1 : pstat); } -void +static void usage(void) { |