diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c index db9a485ee5bf..d0c988b26054 100644 --- a/sys/kern/kern_conf.c +++ b/sys/kern/kern_conf.c @@ -426,7 +426,7 @@ devtoname(dev_t dev) } int -dev_stdclone(char *name, char **namep, char *stem, int *unit) +dev_stdclone(char *name, char **namep, const char *stem, int *unit) { int u, i; diff --git a/sys/sys/conf.h b/sys/sys/conf.h index 130f5cb155c3..f4e3dded4f19 100644 --- a/sys/sys/conf.h +++ b/sys/sys/conf.h @@ -353,7 +353,7 @@ extern int devfs_present; typedef void (*dev_clone_fn) __P((void *arg, char *name, int namelen, dev_t *result)); -int dev_stdclone __P((char *name, char **namep, char *stem, int *unit)); +int dev_stdclone __P((char *name, char **namep, const char *stem, int *unit)); EVENTHANDLER_DECLARE(dev_clone, dev_clone_fn); #endif /* _KERNEL */ diff --git a/sys/sys/linedisc.h b/sys/sys/linedisc.h index 130f5cb155c3..f4e3dded4f19 100644 --- a/sys/sys/linedisc.h +++ b/sys/sys/linedisc.h @@ -353,7 +353,7 @@ extern int devfs_present; typedef void (*dev_clone_fn) __P((void *arg, char *name, int namelen, dev_t *result)); -int dev_stdclone __P((char *name, char **namep, char *stem, int *unit)); +int dev_stdclone __P((char *name, char **namep, const char *stem, int *unit)); EVENTHANDLER_DECLARE(dev_clone, dev_clone_fn); #endif /* _KERNEL */