diff options
author | imp <imp@FreeBSD.org> | 2008-11-20 08:12:26 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2008-11-20 08:12:26 +0000 |
commit | 9948704a0accc9ba8c4a7e573df9d01e9301ec7a (patch) | |
tree | 71b88343964ce3cd095b5933b129304c964429af /usr.sbin/dumpcis/printcis.c | |
parent | a7655fc3e2626a3ce98cf7528e81baf88d1abca7 (diff) | |
download | FreeBSD-src-9948704a0accc9ba8c4a7e573df9d01e9301ec7a.zip FreeBSD-src-9948704a0accc9ba8c4a7e573df9d01e9301ec7a.tar.gz |
The original programs that this code was lifted from (pccardd and
pccardc) parsed data to make decisions about stuff related to card
configuration.
The purely CIS dumping aspect of this program obviates the need for
such parsing. Save some space and don't parse the data anymore for
configuration purposes. Just parse it to print an interpreatation of
it.
Diffstat (limited to 'usr.sbin/dumpcis/printcis.c')
-rw-r--r-- | usr.sbin/dumpcis/printcis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dumpcis/printcis.c b/usr.sbin/dumpcis/printcis.c index 1bd526e..4468f02 100644 --- a/usr.sbin/dumpcis/printcis.c +++ b/usr.sbin/dumpcis/printcis.c @@ -62,7 +62,7 @@ static void dump_info_v2(u_char *p, int len); static void dump_org(u_char *p, int len); void -dumpcis(struct cis *cp) +dumpcis(struct tuple_list *tlist) { struct tuple *tp; struct tuple_list *tl; @@ -70,7 +70,7 @@ dumpcis(struct cis *cp) u_char *p; int func = 0; - for (tl = cp->tlist; tl; tl = tl->next) + for (tl = tlist; tl; tl = tl->next) for (tp = tl->tuples; tp; tp = tp->next) { printf("Tuple #%d, code = 0x%x (%s), length = %d\n", ++count, tp->code, tuple_name(tp->code), tp->length); |