Sync with sys/i386/i386/userconfig.c revision 1.146.

This commit is contained in:
kato 1999-06-28 13:10:03 +00:00
parent a6bac2371e
commit b601ed220a

View File

@ -46,7 +46,7 @@
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
** THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**
** $Id: userconfig.c,v 1.80 1999/05/17 12:09:07 kato Exp $
** $Id: userconfig.c,v 1.81 1999/05/25 10:32:10 kato Exp $
**/
/**
@ -859,7 +859,7 @@ savelist(DEV_LIST *list, int active)
{
struct isa_device *id_p,*id_pn;
struct isa_driver *isa_drv;
char *name = list->device->id_driver->name;
char *name;
while (list)
{
@ -875,6 +875,7 @@ savelist(DEV_LIST *list, int active)
{ /* look on the list for it */
if (id_p->id_id == list->device->id_id)
{
name = list->device->id_driver->name;
id_pn = id_p->id_next;
isa_drv = id_p->id_driver;
if (isa_drv && isa_drv->name)
@ -894,6 +895,7 @@ savelist(DEV_LIST *list, int active)
}
if (!id_pn) /* not already on the list */
{
name = list->device->id_driver->name;
id_pn = malloc(sizeof(struct isa_device),M_DEVL,M_WAITOK);
bcopy(list->device,id_pn,sizeof(struct isa_device));
save_resource(list->device);
@ -2556,7 +2558,7 @@ visuserconfig(void)
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: userconfig.c,v 1.80 1999/05/17 12:09:07 kato Exp $
* $Id: userconfig.c,v 1.81 1999/05/25 10:32:10 kato Exp $
*/
#include "scbus.h"