Remove xbps_print_hexfp() from API and move it xbps-rindex, where it belongs.

This commit is contained in:
Juan RP
2013-11-08 09:12:29 +01:00
parent 2952c69c7a
commit 53ecaf9819
3 changed files with 17 additions and 27 deletions

View File

@ -297,20 +297,3 @@ xbps_humanize_number(char *buf, int64_t bytes)
return humanize_number(buf, 7, bytes, "B",
HN_AUTOSCALE, HN_DECIMAL|HN_NOSPACE);
}
void
xbps_print_hexfp(const char *fp)
{
unsigned char *fpstr;
unsigned int i, c, len;
fpstr = (unsigned char *)(void *)(unsigned long)(const void *)fp;
len = strlen(fp);
for (i = 0; i < len; i++) {
printf("%02x", fpstr[i]);
c = i + 1;
if (c < len)
putchar(':');
}
}