diff options
| author | KATO Takenori <kato@FreeBSD.org> | 1999-06-28 13:10:03 +0000 |
|---|---|---|
| committer | KATO Takenori <kato@FreeBSD.org> | 1999-06-28 13:10:03 +0000 |
| commit | ed7db576602b2a7f9b68fefb5c6e91ce03eb9b9a (patch) | |
| tree | 022c6f0958e3b4047f2668479fd7d55737253c7e | |
| parent | 0dcbd0c212fd12325baf244f9073905d9cd6ca1e (diff) | |
Notes
| -rw-r--r-- | sys/pc98/i386/userconfig.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/pc98/i386/userconfig.c b/sys/pc98/i386/userconfig.c index 14bc50fab4b32..d7585aabe1fbf 100644 --- a/sys/pc98/i386/userconfig.c +++ b/sys/pc98/i386/userconfig.c @@ -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" |
