Fix -Wcast-qual issues
This commit is contained in:
parent
2269fc7ff3
commit
43e54b3a2f
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mailwrapper.c,v 1.9 2003/03/09 08:10:43 mjl Exp $ */
|
||||
/* $NetBSD: mailwrapper.c,v 1.10 2009/04/16 07:13:16 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998
|
||||
@ -41,7 +41,7 @@
|
||||
|
||||
struct arglist {
|
||||
size_t argc, maxc;
|
||||
char **argv;
|
||||
const char **argv;
|
||||
};
|
||||
|
||||
int main __P((int, char *[], char *[]));
|
||||
@ -83,7 +83,7 @@ addarg(al, arg, copy)
|
||||
if ((al->argv[al->argc++] = strdup(arg)) == NULL)
|
||||
err(1, "mailwrapper:");
|
||||
} else
|
||||
al->argv[al->argc++] = (char *)arg;
|
||||
al->argv[al->argc++] = arg;
|
||||
}
|
||||
|
||||
int
|
||||
@ -147,7 +147,7 @@ main(argc, argv, envp)
|
||||
addarg(&al, argv[i], 0);
|
||||
|
||||
addarg(&al, NULL, 0);
|
||||
execve(to, al.argv, envp);
|
||||
execve(to, __UNCONST(al.argv), envp);
|
||||
err(1, "mailwrapper: execing %s", to);
|
||||
/*NOTREACHED*/
|
||||
parse_error:
|
||||
|
Loading…
Reference in New Issue
Block a user