diff options
| author | Justin T. Gibbs <gibbs@FreeBSD.org> | 1996-03-10 07:04:27 +0000 |
|---|---|---|
| committer | Justin T. Gibbs <gibbs@FreeBSD.org> | 1996-03-10 07:04:27 +0000 |
| commit | e4f25ddc16e1472092230dcef8bf9ca373746508 (patch) | |
| tree | 1ed5ac6b0acc99f35ab2cc07f1569e695ee0de7b /sys/dev/eisa | |
| parent | 75f0b9d070cb3bee2c827ebdb158f2b84eddd68a (diff) | |
Notes
Diffstat (limited to 'sys/dev/eisa')
| -rw-r--r-- | sys/dev/eisa/eisaconf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/eisa/eisaconf.c b/sys/dev/eisa/eisaconf.c index 881eb2de36d8..fa7f9eb39cde 100644 --- a/sys/dev/eisa/eisaconf.c +++ b/sys/dev/eisa/eisaconf.c @@ -18,7 +18,7 @@ * 4. Modifications may be freely made to this file if the above conditions * are met. * - * $Id: eisaconf.c,v 1.15 1996/01/31 18:46:36 gibbs Exp $ + * $Id: eisaconf.c,v 1.16 1996/02/26 01:01:41 gibbs Exp $ */ #include <sys/param.h> #include <sys/systm.h> @@ -146,7 +146,7 @@ eisa_configure() * be responsible for creating the list of devices in the system * for the configuration manager to use. */ - e_dev->full_name = (char *)malloc(10*sizeof(char), + e_dev->full_name = (char *)malloc(8*sizeof(char), M_DEVBUF, M_NOWAIT); if (!e_dev->full_name) { panic("Eisa probe unable to malloc"); @@ -335,14 +335,14 @@ eisa_reg_print(e_dev, string, separator) { int len = strlen(string); - if( separator ) + if(separator) len++; if(reg_state.column + len > MAX_COL) { printf("\n"); reg_state.column = 0; } - else if( separator ) { + else if(separator) { printf("%c", *separator); reg_state.column++; } |
