aboutsummaryrefslogtreecommitdiff
path: root/lib/libarchive/archive_string.c
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@FreeBSD.org>2009-03-06 05:14:55 +0000
committerTim Kientzle <kientzle@FreeBSD.org>2009-03-06 05:14:55 +0000
commitaf176e930c843269a17564b6006026e12dd9f8c4 (patch)
tree05876ae8fd18c0cdb5b8e5844dacf40a7bd41276 /lib/libarchive/archive_string.c
parentc07eec64597c11cbcc0afd1edbe5ba5b6d82e609 (diff)
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.
Notes
Notes: svn path=/head/; revision=189435
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 c22031706a2f..03186bfca808 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.