Make the proposed name arg to dev_stdclone() const.
This commit is contained in:
parent
42277d473c
commit
01de1b13b8
@ -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;
|
||||
|
||||
|
@ -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 */
|
||||
|
||||
|
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user