diff --git a/sbin/iscontrol/misc.c b/sbin/iscontrol/misc.c index d524f72e9ab4..61ca247b22e2 100644 --- a/sbin/iscontrol/misc.c +++ b/sbin/iscontrol/misc.c @@ -158,7 +158,8 @@ char * bin2str(char *encoding, unsigned char *md, int blen) { int len; - unsigned char *dst, *ds, *cp; + char *dst, *ds; + unsigned char *cp; if(strncasecmp(encoding, "0x", 2) == 0) { char ofmt[5]; @@ -167,7 +168,7 @@ bin2str(char *encoding, unsigned char *md, int blen) dst = malloc(len + 3); strcpy(dst, encoding); ds = dst + 2; - cp = (char *)md; + cp = md; sprintf(ofmt, "%%02%c", encoding[1]); while(blen-- > 0) { sprintf(ds, ofmt, *cp++); @@ -183,7 +184,7 @@ bin2str(char *encoding, unsigned char *md, int blen) dst = malloc(len + 3); strcpy(dst, encoding); ds = dst + 2; - cp = (char *)md; + cp = md; b6 = 0; // to keep copiler happy. for(i = 0; i < blen; i++) { switch(i % 3) {