diff options
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/disklabel/disklabel.c | 5 | ||||
-rw-r--r-- | sbin/disklabel/dkcksum.c | 5 | ||||
-rw-r--r-- | sbin/disklabel/extern.h | 18 |
3 files changed, 24 insertions, 4 deletions
diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c index 8733160d628..3139ecc39d9 100644 --- a/sbin/disklabel/disklabel.c +++ b/sbin/disklabel/disklabel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disklabel.c,v 1.82 2003/06/25 21:11:48 deraadt Exp $ */ +/* $OpenBSD: disklabel.c,v 1.83 2003/07/02 21:22:10 deraadt Exp $ */ /* * Copyright (c) 1987, 1993 @@ -39,7 +39,7 @@ static const char copyright[] = #endif /* not lint */ #ifndef lint -static const char rcsid[] = "$OpenBSD: disklabel.c,v 1.82 2003/06/25 21:11:48 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: disklabel.c,v 1.83 2003/07/02 21:22:10 deraadt Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -62,6 +62,7 @@ static const char rcsid[] = "$OpenBSD: disklabel.c,v 1.82 2003/06/25 21:11:48 de #include <unistd.h> #include <util.h> #include "pathnames.h" +#include "extern.h" /* * Disklabel: read and write disklabels. diff --git a/sbin/disklabel/dkcksum.c b/sbin/disklabel/dkcksum.c index 952504098a9..f55e5c66bd3 100644 --- a/sbin/disklabel/dkcksum.c +++ b/sbin/disklabel/dkcksum.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dkcksum.c,v 1.5 2003/06/11 06:22:12 deraadt Exp $ */ +/* $OpenBSD: dkcksum.c,v 1.6 2003/07/02 21:22:10 deraadt Exp $ */ /* $NetBSD: dkcksum.c,v 1.6 1995/03/18 14:54:42 cgd Exp $ */ /*- @@ -34,12 +34,13 @@ #if 0 static char sccsid[] = "@(#)dkcksum.c 8.1 (Berkeley) 6/5/93"; #else -static char rcsid[] = "$OpenBSD: dkcksum.c,v 1.5 2003/06/11 06:22:12 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: dkcksum.c,v 1.6 2003/07/02 21:22:10 deraadt Exp $"; #endif #endif /* not lint */ #include <sys/types.h> #include <sys/disklabel.h> +#include "extern.h" u_short dkcksum(struct disklabel *lp) diff --git a/sbin/disklabel/extern.h b/sbin/disklabel/extern.h new file mode 100644 index 00000000000..6fe05e7a94a --- /dev/null +++ b/sbin/disklabel/extern.h @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2003 Theo de Raadt <deraadt@openbsd.org> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +u_short dkcksum(struct disklabel *); + |