diff options
| author | Nate Lawson <njl@FreeBSD.org> | 2006-01-26 19:55:29 +0000 |
|---|---|---|
| committer | Nate Lawson <njl@FreeBSD.org> | 2006-01-26 19:55:29 +0000 |
| commit | c74da55a0e2db08a904f3f1ea5168253f5e28023 (patch) | |
| tree | d3bf17622e3771665a9c6e63701a7d005a4fec59 /sys/dev/an | |
| parent | 972e95c81ad804a58b38aad2745b2cb3ac3ff7d9 (diff) | |
Notes
Diffstat (limited to 'sys/dev/an')
| -rw-r--r-- | sys/dev/an/if_an.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/an/if_an.c b/sys/dev/an/if_an.c index fd34900575ab..ffd285a5e4f9 100644 --- a/sys/dev/an/if_an.c +++ b/sys/dev/an/if_an.c @@ -88,6 +88,7 @@ __FBSDID("$FreeBSD$"); #endif #include <sys/param.h> +#include <sys/ctype.h> #include <sys/systm.h> #include <sys/sockio.h> #include <sys/mbuf.h> @@ -1593,9 +1594,7 @@ an_dump_record(struct an_softc *sc, struct an_ltv_gen *ltv, char *string) printf("%02x ", *ptr2); temp = *ptr2++; - if (temp >= ' ' && temp <= '~') - buf[count] = temp; - else if (temp >= 'A' && temp <= 'Z') + if (isprint(temp)) buf[count] = temp; else buf[count] = '.'; |
