diff options
author | delphij <delphij@FreeBSD.org> | 2006-08-08 14:28:03 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2006-08-08 14:28:03 +0000 |
commit | 9587fe5a7f8b7de319a422a48e57f95f3443919c (patch) | |
tree | b6692e4917e73a20e82c1a0f16005d3bf243248c /usr.sbin/sade/disks.c | |
parent | ae2f8ae4be9332bd1024da5ecc4d2e3a86015f3b (diff) | |
download | FreeBSD-src-9587fe5a7f8b7de319a422a48e57f95f3443919c.zip FreeBSD-src-9587fe5a7f8b7de319a422a48e57f95f3443919c.tar.gz |
Partitions are only meaningful for i386 and amd64 architectures, so disable
these code on other architectures.
Diffstat (limited to 'usr.sbin/sade/disks.c')
-rw-r--r-- | usr.sbin/sade/disks.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/sade/disks.c b/usr.sbin/sade/disks.c index 9b13725..a6eb6e7 100644 --- a/usr.sbin/sade/disks.c +++ b/usr.sbin/sade/disks.c @@ -74,7 +74,9 @@ static struct chunk *chunk_info[CHUNK_INFO_ENTRIES]; static int current_chunk; static void diskPartitionNonInteractive(Device *dev); +#if defined(__i386__) || defined(__amd64__) /* only meaningful on x86 */ static u_char * bootalloc(char *name, size_t *size); +#endif static void record_chunks(Disk *d) @@ -714,6 +716,7 @@ diskPartition(Device *dev) } #endif /* WITH_SLICES */ +#if defined(__i386__) || defined(__amd64__) /* only meaningful on x86 */ static u_char * bootalloc(char *name, size_t *size) { @@ -746,6 +749,7 @@ bootalloc(char *name, size_t *size) msgDebug("bootalloc: can't stat %s\n", buf); return NULL; } +#endif /* __i386__ || __amd64 */ #ifdef WITH_SLICES static int @@ -856,7 +860,9 @@ diskPartitionWrite(dialogMenuItem *self) msgDebug("diskPartitionWrite: Examining %d devices\n", deviceCount(devs)); for (i = 0; devs[i]; i++) { Disk *d = (Disk *)devs[i]->private; +#if !defined(__ia64__) static u_char *boot1; +#endif #if defined(__i386__) || defined(__amd64__) static u_char *boot2; #endif |