Added more const-ness.

This commit is contained in:
Roland Illig 2004-08-17 11:14:51 +00:00
parent f608bd21f8
commit c0a173bf7b
2 changed files with 4 additions and 4 deletions

View File

@ -169,7 +169,7 @@ fish_free_archive (struct vfs_class *me, struct vfs_s_super *super)
}
static void
fish_pipeopen(struct vfs_s_super *super, char *path, char *argv[])
fish_pipeopen(struct vfs_s_super *super, const char *path, const char *argv[])
{
int fileset1[2], fileset2[2];
int res;
@ -193,7 +193,7 @@ fish_pipeopen(struct vfs_s_super *super, char *path, char *argv[])
/* stderr to /dev/null */
open ("/dev/null", O_WRONLY);
close(fileset2[0]); close(fileset2[1]);
execvp(path, argv);
execvp(path, const_cast(char **, argv));
_exit(3);
}
}
@ -854,7 +854,7 @@ static void
fish_fill_names (struct vfs_class *me, fill_names_f func)
{
struct vfs_s_super *super = MEDATA->supers;
char *flags;
const char *flags;
char *name;
while (super){

View File

@ -206,7 +206,7 @@ mcfs_get_remote_port (struct sockaddr_in *sin, int *version)
/* This used to be in utilvfs.c, but as it deals with portmapper, it
is probably useful for mcfs */
static int
mcfs_create_tcp_link (char *host, int *port, int *version, char *caller)
mcfs_create_tcp_link (const char *host, int *port, int *version, const char *caller)
{
struct sockaddr_in server_address;
unsigned long inaddr;