diff options
author | phk <phk@FreeBSD.org> | 2005-03-15 09:30:17 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-03-15 09:30:17 +0000 |
commit | ea53ec6d3d993faa5f37921d8881e1a2fe454160 (patch) | |
tree | b5f720f137a2a45023d10f1abf5269079f97d9fc /sys | |
parent | 833fbdb7105a896e8b70fb4841c307c9b2ff032a (diff) | |
download | FreeBSD-src-ea53ec6d3d993faa5f37921d8881e1a2fe454160.zip FreeBSD-src-ea53ec6d3d993faa5f37921d8881e1a2fe454160.tar.gz |
Move devtoname() prototype to systm.h to reduce #include pollution,
it is (or should be) used in many printf() calls.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/conf.h | 1 | ||||
-rw-r--r-- | sys/sys/systm.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/conf.h b/sys/sys/conf.h index 6231281..07e9949 100644 --- a/sys/sys/conf.h +++ b/sys/sys/conf.h @@ -255,7 +255,6 @@ int count_dev(struct cdev *_dev); void destroy_dev(struct cdev *_dev); struct cdevsw *dev_refthread(struct cdev *_dev); void dev_relthread(struct cdev *_dev); -const char *devtoname(struct cdev *_dev); int dev_named(struct cdev *_pdev, const char *_name); void dev_depends(struct cdev *_pdev, struct cdev *_cdev); void dev_ref(struct cdev *dev); diff --git a/sys/sys/systm.h b/sys/sys/systm.h index dfcbaa1..40fdfbf 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -312,6 +312,7 @@ dev_t dev2udev(struct cdev *x); struct cdev *findcdev(dev_t x); int uminor(dev_t dev); int umajor(dev_t dev); +const char *devtoname(struct cdev *cdev); /* XXX: Should be void nanodelay(u_int nsec); */ void DELAY(int usec); |