summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2004-08-02 23:18:48 +0000
committermarcel <marcel@FreeBSD.org>2004-08-02 23:18:48 +0000
commit52fb831b82022a893b74412dda293acb18c69461 (patch)
tree2aea3fc90d01261cc58d69205197a7df3c56c9c2 /usr.sbin/sade
parent4cf054f84734b1dcf77bee5272ca96495bd4bfd0 (diff)
downloadFreeBSD-src-52fb831b82022a893b74412dda293acb18c69461.zip
FreeBSD-src-52fb831b82022a893b74412dda293acb18c69461.tar.gz
Move the inclusion of libdisk.h from sysinstall.h to the source files
that actually need it. This makes it easier for a platform porter to find the files that may need tweaking to support whatever MD specific partitioning is needed. It also helps to prevent that the libdisk API gets exposed and/or used where it's not needed.
Diffstat (limited to 'usr.sbin/sade')
-rw-r--r--usr.sbin/sade/config.c1
-rw-r--r--usr.sbin/sade/devices.c1
-rw-r--r--usr.sbin/sade/disks.c1
-rw-r--r--usr.sbin/sade/install.c1
-rw-r--r--usr.sbin/sade/label.c1
-rw-r--r--usr.sbin/sade/sade.h1
-rw-r--r--usr.sbin/sade/wizard.c1
7 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/sade/config.c b/usr.sbin/sade/config.c
index d055933..1371374 100644
--- a/usr.sbin/sade/config.c
+++ b/usr.sbin/sade/config.c
@@ -44,6 +44,7 @@
#include <sys/stat.h>
#include <unistd.h>
#include <sys/mount.h>
+#include <libdisk.h>
#include <time.h>
#include <kenv.h>
diff --git a/usr.sbin/sade/devices.c b/usr.sbin/sade/devices.c
index c0dcc8a..2b87e1c 100644
--- a/usr.sbin/sade/devices.c
+++ b/usr.sbin/sade/devices.c
@@ -48,6 +48,7 @@
#include <netinet/in_var.h>
#include <arpa/inet.h>
#include <ctype.h>
+#include <libdisk.h>
/* how much to bias minor number for a given /dev/<ct#><un#>s<s#> slice */
#define SLICE_DELTA (0x10000)
diff --git a/usr.sbin/sade/disks.c b/usr.sbin/sade/disks.c
index f3743b2..234c59c 100644
--- a/usr.sbin/sade/disks.c
+++ b/usr.sbin/sade/disks.c
@@ -38,6 +38,7 @@
#include <ctype.h>
#include <fcntl.h>
#include <inttypes.h>
+#include <libdisk.h>
#include <sys/stat.h>
#include <sys/disklabel.h>
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c
index e52d0e2..d98bc50 100644
--- a/usr.sbin/sade/install.c
+++ b/usr.sbin/sade/install.c
@@ -50,6 +50,7 @@
#undef MSDOSFS
#include <sys/stat.h>
#include <sys/sysctl.h>
+#include <libdisk.h>
#include <limits.h>
#include <unistd.h>
#include <termios.h>
diff --git a/usr.sbin/sade/label.c b/usr.sbin/sade/label.c
index 3f27e589..ddd568a 100644
--- a/usr.sbin/sade/label.c
+++ b/usr.sbin/sade/label.c
@@ -37,6 +37,7 @@
#include "sysinstall.h"
#include <ctype.h>
#include <inttypes.h>
+#include <libdisk.h>
#include <sys/disklabel.h>
#include <sys/param.h>
#include <sys/sysctl.h>
diff --git a/usr.sbin/sade/sade.h b/usr.sbin/sade/sade.h
index 938cfad..8655ea7 100644
--- a/usr.sbin/sade/sade.h
+++ b/usr.sbin/sade/sade.h
@@ -48,7 +48,6 @@
#include "ui_objects.h"
#include "dir.h"
#include "colors.h"
-#include "libdisk.h"
#include "dist.h"
/*** Defines ***/
diff --git a/usr.sbin/sade/wizard.c b/usr.sbin/sade/wizard.c
index 3a07887..98e0a5c 100644
--- a/usr.sbin/sade/wizard.c
+++ b/usr.sbin/sade/wizard.c
@@ -13,6 +13,7 @@
#include "sysinstall.h"
#include <fcntl.h>
#include <err.h>
+#include <libdisk.h>
int
scan_block(int fd, daddr_t block)
OpenPOWER on IntegriCloud