summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/archive_string.c
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2009-03-06 05:14:55 +0000
committerkientzle <kientzle@FreeBSD.org>2009-03-06 05:14:55 +0000
commit832acf54b286b99137c88bcba998c90f6a2c6a82 (patch)
tree05876ae8fd18c0cdb5b8e5844dacf40a7bd41276 /lib/libarchive/archive_string.c
parente9d024072e3473c8cad012b0657f9214a09fb460 (diff)
downloadFreeBSD-src-832acf54b286b99137c88bcba998c90f6a2c6a82.zip
FreeBSD-src-832acf54b286b99137c88bcba998c90f6a2c6a82.tar.gz
Merge r505 from libarchive.googlecode.com: Fix %ju support. Simplify
the code here a bit by making the int formatting functions static to archive_string_sprintf.c, which is the only place this has ever been used.
Diffstat (limited to 'lib/libarchive/archive_string.c')
-rw-r--r--lib/libarchive/archive_string.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/libarchive/archive_string.c b/lib/libarchive/archive_string.c
index c220317..03186bf 100644
--- a/lib/libarchive/archive_string.c
+++ b/lib/libarchive/archive_string.c
@@ -163,21 +163,6 @@ __archive_strappend_char(struct archive_string *as, char c)
return (__archive_string_append(as, &c, 1));
}
-struct archive_string *
-__archive_strappend_int(struct archive_string *as, int d, int base)
-{
- static const char *digits = "0123456789abcdef";
-
- if (d < 0) {
- __archive_strappend_char(as, '-');
- d = -d;
- }
- if (d >= base)
- __archive_strappend_int(as, d/base, base);
- __archive_strappend_char(as, digits[d % base]);
- return (as);
-}
-
#ifndef _WIN32
/*
* Home-grown wctomb for UTF-8.
OpenPOWER on IntegriCloud