Make sure we allocate at least 8 scbus if we allocate any at all.

This commit is contained in:
Poul-Henning Kamp 1994-12-18 18:48:39 +00:00
parent 40a97f50d4
commit d9a2713bb5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5157

View File

@ -14,7 +14,7 @@
*
* Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
*
* $Id: scsiconf.c,v 1.15 1994/11/17 23:22:22 ats Exp $
* $Id: scsiconf.c,v 1.16 1994/11/27 23:30:48 ats Exp $
*/
#include <sys/types.h>
@ -30,7 +30,15 @@
#include "cd.h"
#include "uk.h"
#include "su.h"
#include "scbus.h"
/* If we have any at all, we want at least 8 */
#if NSCBUS > 0
#if NSCBUS < 8
#undef NSCBUS
#endif /* NSCBUS < 8 */
#endif /* NSCBUS > 0 */
#ifndef NSCBUS
#define NSCBUS 8
#endif /* NSCBUS */