summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-08-02 20:35:35 +0000
committerimp <imp@FreeBSD.org>2001-08-02 20:35:35 +0000
commit982fd84b01201a3e526bacc2c658932729cb7725 (patch)
tree8722b50d9fbcdf81b14aa50eb04eea9e81cc2fe0
parent967f33f3bc36554ac3f0897259485e4f2698cec4 (diff)
downloadFreeBSD-src-982fd84b01201a3e526bacc2c658932729cb7725.zip
FreeBSD-src-982fd84b01201a3e526bacc2c658932729cb7725.tar.gz
Make the fmt arguments to make_dev and make_dev_alias const char *.
Approved on IRC as long as it didn't cause a large number of warnings by: phk MFC After: 700 hours
-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