summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_conf.c4
-rw-r--r--sys/sys/conf.h4
-rw-r--r--sys/sys/linedisc.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
index f5c4c1a..35cffc2 100644
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -270,7 +270,7 @@ makeudev(int x, int y)
}
dev_t
-make_dev(struct cdevsw *devsw, int minor, uid_t uid, gid_t gid, int perms, char *fmt, ...)
+make_dev(struct cdevsw *devsw, int minor, uid_t uid, gid_t gid, int perms, const char *fmt, ...)
{
dev_t dev;
va_list ap;
@@ -310,7 +310,7 @@ dev_depends(dev_t pdev, dev_t cdev)
}
dev_t
-make_dev_alias(dev_t pdev, char *fmt, ...)
+make_dev_alias(dev_t pdev, const char *fmt, ...)
{
dev_t dev;
va_list ap;
diff --git a/sys/sys/conf.h b/sys/sys/conf.h
index dd68562..41556cc 100644
--- a/sys/sys/conf.h
+++ b/sys/sys/conf.h
@@ -301,8 +301,8 @@ void dev_depends __P((dev_t pdev, dev_t cdev));
void freedev __P((dev_t dev));
int iszerodev __P((dev_t dev));
dev_t makebdev __P((int maj, int min));
-dev_t make_dev __P((struct cdevsw *devsw, int minor, uid_t uid, gid_t gid, int perms, char *fmt, ...)) __printflike(6, 7);
-dev_t make_dev_alias __P((dev_t pdev, char *fmt, ...)) __printflike(2, 3);
+dev_t make_dev __P((struct cdevsw *devsw, int minor, uid_t uid, gid_t gid, int perms, const char *fmt, ...)) __printflike(6, 7);
+dev_t make_dev_alias __P((dev_t pdev, const char *fmt, ...)) __printflike(2, 3);
int dev2unit __P((dev_t dev));
int unit2minor __P((int unit));
void setconf __P((void));
diff --git a/sys/sys/linedisc.h b/sys/sys/linedisc.h
index dd68562..41556cc 100644
--- a/sys/sys/linedisc.h
+++ b/sys/sys/linedisc.h
@@ -301,8 +301,8 @@ void dev_depends __P((dev_t pdev, dev_t cdev));
void freedev __P((dev_t dev));
int iszerodev __P((dev_t dev));
dev_t makebdev __P((int maj, int min));
-dev_t make_dev __P((struct cdevsw *devsw, int minor, uid_t uid, gid_t gid, int perms, char *fmt, ...)) __printflike(6, 7);
-dev_t make_dev_alias __P((dev_t pdev, char *fmt, ...)) __printflike(2, 3);
+dev_t make_dev __P((struct cdevsw *devsw, int minor, uid_t uid, gid_t gid, int perms, const char *fmt, ...)) __printflike(6, 7);
+dev_t make_dev_alias __P((dev_t pdev, const char *fmt, ...)) __printflike(2, 3);
int dev2unit __P((dev_t dev));
int unit2minor __P((int unit));
void setconf __P((void));
OpenPOWER on IntegriCloud