Constify arguments. While I'm there, also add a static for usage().
MFC after: 2 weeks
This commit is contained in:
parent
584529bfc8
commit
afd567e6cf
@ -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)
|
||||
{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user