diff options
author | joerg <joerg@FreeBSD.org> | 1996-03-24 18:57:37 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1996-03-24 18:57:37 +0000 |
commit | 4a50302d192e83dc60d5d5f8733394502e1bcc82 (patch) | |
tree | 64252e0a03868512a72667c47864b6264d8dfb10 /usr.sbin/sysinstall/config.c | |
parent | 18d2a8c9e5387edcde838e92ed58f3612eae5509 (diff) | |
download | FreeBSD-src-4a50302d192e83dc60d5d5f8733394502e1bcc82.zip FreeBSD-src-4a50302d192e83dc60d5d5f8733394502e1bcc82.tar.gz |
Rename the usage of `private' to `private_data' to cope with the
recent libdisk changes. (sysinstall is guilty of using `private' in
quite more places, but since this ain't in library code, it's not that
important.)
Whenever possible, better not use C++ reserved words...
Diffstat (limited to 'usr.sbin/sysinstall/config.c')
-rw-r--r-- | usr.sbin/sysinstall/config.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/sysinstall/config.c b/usr.sbin/sysinstall/config.c index 13b8167..40622be 100644 --- a/usr.sbin/sysinstall/config.c +++ b/usr.sbin/sysinstall/config.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: config.c,v 1.20 1996/03/19 11:51:36 jkh Exp $ + * $Id: config.c,v 1.21 1996/03/21 09:30:08 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -58,14 +58,14 @@ chunk_compare(Chunk *c1, Chunk *c2) return 1; else if (c1 && !c2) return -1; - else if (!c1->private && !c2->private) + else if (!c1->private_data && !c2->private_data) return 0; - else if (c1->private && !c2->private) + else if (c1->private_data && !c2->private_data) return 1; - else if (!c1->private && c2->private) + else if (!c1->private_data && c2->private_data) return -1; else - return strcmp(((PartInfo *)(c1->private))->mountpoint, ((PartInfo *)(c2->private))->mountpoint); + return strcmp(((PartInfo *)(c1->private_data))->mountpoint, ((PartInfo *)(c2->private_data))->mountpoint); } static void @@ -105,7 +105,7 @@ mount_point(Chunk *c1) if (c1->type == part && c1->subtype == FS_SWAP) return "none"; else if (c1->type == part || c1->type == fat) - return ((PartInfo *)c1->private)->mountpoint; + return ((PartInfo *)c1->private_data)->mountpoint; return "/bogus"; } @@ -183,11 +183,11 @@ configFstab(void) for (c1 = disk->chunks->part; c1; c1 = c1->next) { if (c1->type == freebsd) { for (c2 = c1->part; c2; c2 = c2->next) { - if (c2->type == part && (c2->subtype == FS_SWAP || c2->private)) + if (c2->type == part && (c2->subtype == FS_SWAP || c2->private_data)) chunk_list[nchunks++] = c2; } } - else if (c1->type == fat && c1->private) + else if (c1->type == fat && c1->private_data) chunk_list[nchunks++] = c1; } } |