diff options
author | Rob Landley <rob@landley.net> | 2006-08-03 19:41:12 +0400 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-08-03 19:41:12 +0400 |
commit | d921b2ecc0d294ad4bf8c7458fc52a60c28727d2 (patch) | |
tree | e4a2769349867c441cf2983d83097bb66701a733 /archival/libunarchive/get_header_tar.c | |
parent | 6dce0b6fa79f2d4bb7e9d90e1fbc0f6beb25f855 (diff) |
Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only
had one user), clean up lots of #includes... General cleanup pass. What I've
been doing for the last couple days.
And it conflicts! I've removed httpd.c from this checkin due to somebody else
touching that file. It builds for me. I have to catch a bus. (Now you know
why I'm looking forward to Mercurial.)
Diffstat (limited to 'archival/libunarchive/get_header_tar.c')
-rw-r--r-- | archival/libunarchive/get_header_tar.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c index fb7e9ae8f..0c622f44a 100644 --- a/archival/libunarchive/get_header_tar.c +++ b/archival/libunarchive/get_header_tar.c @@ -11,12 +11,8 @@ * http://www.opengroup.org/onlinepubs/007904975/utilities/pax.html */ -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <sys/sysmacros.h> /* For makedev */ -#include "unarchive.h" #include "libbb.h" +#include "unarchive.h" #ifdef CONFIG_FEATURE_TAR_GNU_EXTENSIONS static char *longname = NULL; @@ -106,7 +102,7 @@ char get_header_tar(archive_handle_t *archive_handle) } else #endif { - file_header->name = bb_xstrndup(tar.formatted.name,100); + file_header->name = xstrndup(tar.formatted.name,100); if (tar.formatted.prefix[0]) { char *temp = file_header->name; @@ -120,7 +116,7 @@ char get_header_tar(archive_handle_t *archive_handle) file_header->size = strtol(tar.formatted.size, NULL, 8); file_header->mtime = strtol(tar.formatted.mtime, NULL, 8); file_header->link_name = (tar.formatted.linkname[0] != '\0') ? - bb_xstrdup(tar.formatted.linkname) : NULL; + xstrdup(tar.formatted.linkname) : NULL; file_header->device = makedev(strtol(tar.formatted.devmajor, NULL, 8), strtol(tar.formatted.devminor, NULL, 8)); |