diff options
author | jkh <jkh@FreeBSD.org> | 1999-01-08 00:32:19 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1999-01-08 00:32:19 +0000 |
commit | ce49697787054f99e7d79d569abc5518051fd1e5 (patch) | |
tree | d9df43706aadb4066758871be13eda424119079f /lib/libdisk/create_chunk.c | |
parent | 2bd023c3bcc58af13caf3dfc72e45544f76e02d0 (diff) | |
download | FreeBSD-src-ce49697787054f99e7d79d569abc5518051fd1e5.zip FreeBSD-src-ce49697787054f99e7d79d569abc5518051fd1e5.tar.gz |
Changes for alpha support.
Submitted by: dfr
Diffstat (limited to 'lib/libdisk/create_chunk.c')
-rw-r--r-- | lib/libdisk/create_chunk.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libdisk/create_chunk.c b/lib/libdisk/create_chunk.c index d5c89c6..6e7569d 100644 --- a/lib/libdisk/create_chunk.c +++ b/lib/libdisk/create_chunk.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: create_chunk.c,v 1.31 1998/09/15 10:23:17 gibbs Exp $ + * $Id: create_chunk.c,v 1.32 1998/10/27 21:14:03 msmith Exp $ * */ @@ -151,6 +151,7 @@ Fixup_Names(struct disk *d) continue; if (strcmp(c2->name,"X")) continue; +#ifndef __alpha__ c2->oname = malloc(12); if(!c2->oname) err(1,"malloc failed"); for(j=1;j<=NDOSPART;j++) { @@ -167,6 +168,10 @@ Fixup_Names(struct disk *d) } if (c2->oname) free(c2->oname); +#else + free(c2->name); + c2->name = strdup(c1->name); +#endif } for(c2 = c1->part; c2 ; c2 = c2->next) { if (c2->type == freebsd) { @@ -281,6 +286,7 @@ MakeDev(struct chunk *c1, const char *path) unit += (*p - '0'); p++; } +#ifndef __alpha__ if (*p != 's') { msgDebug("MakeDev: `%s' is not a valid slice delimiter\n", p); return 0; @@ -298,6 +304,9 @@ MakeDev(struct chunk *c1, const char *path) p++; } slice = slice + 1; +#else + slice = 0; +#endif if (!*p) { part = 2; if(c1->type == freebsd) |