for (j = 0; j < k->wi_keylen; j++) { if (!isprint(ptr[j])) {
for (j = 0; j < letoh16(k->wi_keylen); j++) { if (!isprint((unsigned char)ptr[j])) {
static void wi_printkeys(wreq)        struct wi_req           *wreq;{        int                     i, j, bn;        struct wi_key           *k;        struct wi_ltv_keys      *keys;        char                    *ptr;	keys = (struct wi_ltv_keys *)wreq;	for (i = 0, bn = 0; i < 4; i++, bn = 0) {                k = &keys->wi_keys[i];                ptr = (char *)k->wi_keydat;                for (j = 0; j < k->wi_keylen; j++) {		        if (!isprint(ptr[j])) {			        bn = 1;				break;			}		}		if (bn)	{		        printf("[ 0x");		        for (j = 0; j < k->wi_keylen; j++)			      printf("%02x", ((unsigned char *) ptr)[j]);			printf(" ]");		} else {		        ptr[j] = '\0';			printf("[ %s ]", ptr);		}        }        return;};