diff options
author | obrien <obrien@FreeBSD.org> | 2001-04-01 11:22:40 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-04-01 11:22:40 +0000 |
commit | a47898d0191610c7bf1668e8b991aa924173d404 (patch) | |
tree | 18a687d2b935c016aebf84cf3972354eb8a6af5a /lib/libdisk | |
parent | a5f4cb49703dbb834a174f326b2921cfb9a32240 (diff) | |
download | FreeBSD-src-a47898d0191610c7bf1668e8b991aa924173d404.zip FreeBSD-src-a47898d0191610c7bf1668e8b991aa924173d404.tar.gz |
Quiet warnings on the Alpha.
Diffstat (limited to 'lib/libdisk')
-rw-r--r-- | lib/libdisk/create_chunk.c | 9 | ||||
-rw-r--r-- | lib/libdisk/write_disk.c | 5 |
2 files changed, 11 insertions, 3 deletions
diff --git a/lib/libdisk/create_chunk.c b/lib/libdisk/create_chunk.c index 3f84619..0fb2c78 100644 --- a/lib/libdisk/create_chunk.c +++ b/lib/libdisk/create_chunk.c @@ -143,8 +143,12 @@ Fixup_Extended_Names(struct disk *d, struct chunk *c) void Fixup_Names(struct disk *d) { - struct chunk *c1, *c2, *c3; - int i,j; + struct chunk *c1, *c2; + int i; +#ifdef __i386__ + struct chunk *c3; + int j; +#endif c1 = d->chunks; for(i=1,c2 = c1->part; c2 ; c2 = c2->next) { @@ -260,6 +264,7 @@ Create_Chunk_DWIM(struct disk *d, struct chunk *parent , u_long size, chunk_e ty if (c1->offset == offset) return c1; barfout(1,"Serious internal trouble"); + return 0; } int diff --git a/lib/libdisk/write_disk.c b/lib/libdisk/write_disk.c index 842b84a..2511e3d 100644 --- a/lib/libdisk/write_disk.c +++ b/lib/libdisk/write_disk.c @@ -183,7 +183,10 @@ Cfg_Boot_Mgr(u_char *mbr, int edd) int Write_Disk(struct disk *d1) { - int fd,i,j; + int fd,i; +#ifdef __i386__ + int j; +#endif struct disk *old = 0; struct chunk *c1; int ret = 0; |