Declare `struct dkbad' with the correct scope so that everything including

<sys/disklabel.h> doesn't have to include <sys/dkbad.h> to avoid compiler
warnings.
This commit is contained in:
bde 1994-11-14 13:08:44 +00:00
parent 143ce33850
commit 4fdd7e3168
3 changed files with 9 additions and 3 deletions

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)disklabel.h 8.1 (Berkeley) 6/2/93
* $Id: disklabel.h,v 1.6 1994/10/27 20:45:09 jkh Exp $
* $Id: disklabel.h,v 1.7 1994/10/31 06:31:14 phk Exp $
*/
#ifndef _SYS_DISKLABEL_H_
@ -378,6 +378,8 @@ extern struct dos_partition dos_partitions[NDOSPART];
#endif /* LOCORE */
#ifdef KERNEL
struct dkbad;
u_int dkcksum __P((struct disklabel *));
int writedisklabel __P((dev_t dev, void (*strat)(), struct disklabel *lp));
char * readdisklabel __P((dev_t dev, void (*strat)(), struct disklabel *lp, struct dos_partition *dp, struct dkbad *bdp));

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)disklabel.h 8.1 (Berkeley) 6/2/93
* $Id: disklabel.h,v 1.6 1994/10/27 20:45:09 jkh Exp $
* $Id: disklabel.h,v 1.7 1994/10/31 06:31:14 phk Exp $
*/
#ifndef _SYS_DISKLABEL_H_
@ -378,6 +378,8 @@ extern struct dos_partition dos_partitions[NDOSPART];
#endif /* LOCORE */
#ifdef KERNEL
struct dkbad;
u_int dkcksum __P((struct disklabel *));
int writedisklabel __P((dev_t dev, void (*strat)(), struct disklabel *lp));
char * readdisklabel __P((dev_t dev, void (*strat)(), struct disklabel *lp, struct dos_partition *dp, struct dkbad *bdp));

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)disklabel.h 8.1 (Berkeley) 6/2/93
* $Id: disklabel.h,v 1.6 1994/10/27 20:45:09 jkh Exp $
* $Id: disklabel.h,v 1.7 1994/10/31 06:31:14 phk Exp $
*/
#ifndef _SYS_DISKLABEL_H_
@ -378,6 +378,8 @@ extern struct dos_partition dos_partitions[NDOSPART];
#endif /* LOCORE */
#ifdef KERNEL
struct dkbad;
u_int dkcksum __P((struct disklabel *));
int writedisklabel __P((dev_t dev, void (*strat)(), struct disklabel *lp));
char * readdisklabel __P((dev_t dev, void (*strat)(), struct disklabel *lp, struct dos_partition *dp, struct dkbad *bdp));