aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorPierre Beyssac <pb@FreeBSD.org>2008-02-06 08:02:55 +0000
committerPierre Beyssac <pb@FreeBSD.org>2008-02-06 08:02:55 +0000
commitfc2d0626070510a2b7bfbbba8be3482ef0c1f45d (patch)
treea81096144d2f9a2a305ae9e5ae053e81e673c40e /sbin
parentce56838fdcc468afb2222cb50a326ef08c156264 (diff)
Notes
Diffstat (limited to 'sbin')
-rw-r--r--sbin/iscontrol/misc.c7
1 files changed, 4 insertions, 3 deletions
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) {