diff options
author | obrien <obrien@FreeBSD.org> | 1998-05-15 21:17:01 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1998-05-15 21:17:01 +0000 |
commit | 746b4b1f11fbf312cbec309324376ec7f4b948fc (patch) | |
tree | f76d3203f1ac073bdc904a53d6611e6d1fcfd77d /lib/libdisk/disk.c | |
parent | e37570d81294700974f15cb7d91068b206166646 (diff) | |
download | FreeBSD-src-746b4b1f11fbf312cbec309324376ec7f4b948fc.zip FreeBSD-src-746b4b1f11fbf312cbec309324376ec7f4b948fc.tar.gz |
Change an arbitarly hardcoded `10' to MAX_NO_DISKS, which is currently "20".
Otherwise can't see sd10 (obtained using wired down sd unit numbers),
reguardless of the number of actual disks you have.
Diffstat (limited to 'lib/libdisk/disk.c')
-rw-r--r-- | lib/libdisk/disk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libdisk/disk.c b/lib/libdisk/disk.c index c9da055..1748135 100644 --- a/lib/libdisk/disk.c +++ b/lib/libdisk/disk.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: disk.c,v 1.32 1998/03/20 23:43:04 jkh Exp $ + * $Id: disk.c,v 1.33 1998/03/22 07:41:23 jkh Exp $ * */ @@ -306,7 +306,7 @@ Disk_Names() memset(disks,0,sizeof *disks * (1 + MAX_NO_DISKS)); k = 0; for (j = 0; device_list[j]; j++) { - for (i = 0; i < 10; i++) { + for (i = 0; i < MAX_NO_DISKS; i++) { sprintf(diskname, "%s%d", device_list[j], i); sprintf(disk, "/dev/r%s", diskname); if (stat(disk, &st) || !(st.st_mode & S_IFCHR)) |