some minimal more amount of const-correctness

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9738 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2001-03-07 00:10:49 +00:00
parent c4a906cfda
commit 81ff46fb89

View File

@@ -1259,7 +1259,7 @@ scrub_env(void)
struct arg_val {
int size;
int argc;
char **argv;
const char **argv;
};
static void addarg(struct arg_val*, const char*);
@@ -1316,7 +1316,7 @@ start_login(const char *host, int autologin, char *name)
/* init argv structure */
argv.size=0;
argv.argc=0;
argv.argv=(char**)malloc(0); /*so we can call realloc later */
argv.argv=malloc(0); /*so we can call realloc later */
addarg(&argv, "login");
addarg(&argv, "-h");
addarg(&argv, host);