summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Rees <rees@cvs.openbsd.org>2001-09-27 16:01:42 +0000
committerJim Rees <rees@cvs.openbsd.org>2001-09-27 16:01:42 +0000
commit5cc18304f924885466665c9076149fa0c9ec21bc (patch)
treed6307380e094f2ad65d5066dccf21ccae631a90a /lib
parent082957eac557892f6891b5c9daa6e8ae4cf563f0 (diff)
hush gcc warning
Diffstat (limited to 'lib')
-rw-r--r--lib/libsectok/atr.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/lib/libsectok/atr.c b/lib/libsectok/atr.c
index 990166d5423..bf1d00b425c 100644
--- a/lib/libsectok/atr.c
+++ b/lib/libsectok/atr.c
@@ -1,4 +1,4 @@
-/* $Id: atr.c,v 1.9 2001/08/02 23:41:52 rees Exp $ */
+/* $Id: atr.c,v 1.10 2001/09/27 16:01:41 rees Exp $ */
/*
copyright 1997, 1999, 2000, 2001
@@ -218,18 +218,17 @@ sectok_parse_atr(int ttyn, int flags, unsigned char *atr, int len, struct scpara
if (nhb) {
hb = ap;
ap += nhb;
- }
-
- if (nhb && (flags & STRV)) {
- printf("%d historical bytes:", nhb);
- for (i = 0; i < nhb; i++) {
- c = hb[i];
- if (c >= ' ' && c <= '~')
- printf(" %c", c);
- else
- printf(" %02x", c);
+ if (flags & STRV) {
+ printf("%d historical bytes:", nhb);
+ for (i = 0; i < nhb; i++) {
+ c = hb[i];
+ if (c >= ' ' && c <= '~')
+ printf(" %c", c);
+ else
+ printf(" %02x", c);
+ }
+ printf("\n");
}
- printf("\n");
}
if (hiproto > 0)