Rename err.h to avoid conflict with system header
Depending on header search path ordering, we can easily confuse libarchive_fe/err.h with the system header. Rename ours to lafe_err.h to avoid the confusion. Rename libarchive_fe/err.c to match.
This commit is contained in:
1 parent
589659ed7f
commit
96f76577d3
28 files changed
+32
-32
No files matched your search
+2
-2
@@ -1074,8 +1074,8 @@ libarchive_test_EXTRA_DIST=\
|
||||
# Common code for libarchive frontends (cpio, tar)
|
||||
#
|
||||
libarchive_fe_la_SOURCES= \
|
||||
libarchive_fe/err.c \
|
||||
libarchive_fe/err.h \
|
||||
libarchive_fe/lafe_err.c \
|
||||
libarchive_fe/lafe_err.h \
|
||||
libarchive_fe/lafe_platform.h \
|
||||
libarchive_fe/line_reader.c \
|
||||
libarchive_fe/line_reader.h \
|
||||
|
||||
+2
-2
@@ -13,8 +13,8 @@ IF(ENABLE_CAT)
|
||||
bsdcat.h
|
||||
bsdcat_platform.h
|
||||
cmdline.c
|
||||
../libarchive_fe/err.c
|
||||
../libarchive_fe/err.h
|
||||
../libarchive_fe/lafe_err.c
|
||||
../libarchive_fe/lafe_err.h
|
||||
../libarchive_fe/lafe_platform.h
|
||||
)
|
||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../libarchive_fe)
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
#include <archive_entry.h>
|
||||
|
||||
#include "bsdcat.h"
|
||||
#include "err.h"
|
||||
#include "lafe_err.h"
|
||||
|
||||
#define BYTES_PER_BLOCK (20*512)
|
||||
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
#endif
|
||||
|
||||
#include "bsdcat.h"
|
||||
#include "err.h"
|
||||
#include "lafe_err.h"
|
||||
|
||||
/*
|
||||
* Short options for bsdcat. Please keep this sorted.
|
||||
|
||||
@@ -151,7 +151,7 @@ else
|
||||
libarchive_host_src_files :=
|
||||
endif
|
||||
|
||||
libarchive_fe_src_files := libarchive_fe/err.c \
|
||||
libarchive_fe_src_files := libarchive_fe/lafe_err.c \
|
||||
libarchive_fe/line_reader.c \
|
||||
libarchive_fe/passphrase.c
|
||||
|
||||
|
||||
+2
-2
@@ -13,8 +13,8 @@ IF(ENABLE_CPIO)
|
||||
cpio.c
|
||||
cpio.h
|
||||
cpio_platform.h
|
||||
../libarchive_fe/err.c
|
||||
../libarchive_fe/err.h
|
||||
../libarchive_fe/lafe_err.c
|
||||
../libarchive_fe/lafe_err.h
|
||||
../libarchive_fe/lafe_platform.h
|
||||
../libarchive_fe/line_reader.c
|
||||
../libarchive_fe/line_reader.h
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@
|
||||
#endif
|
||||
|
||||
#include "cpio.h"
|
||||
#include "err.h"
|
||||
#include "lafe_err.h"
|
||||
|
||||
/*
|
||||
* Short options for cpio. Please keep this sorted.
|
||||
|
||||
+1
-1
@@ -60,7 +60,7 @@
|
||||
#endif
|
||||
|
||||
#include "cpio.h"
|
||||
#include "err.h"
|
||||
#include "lafe_err.h"
|
||||
#include "line_reader.h"
|
||||
#include "passphrase.h"
|
||||
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@
|
||||
#include <sddl.h>
|
||||
|
||||
#include "cpio.h"
|
||||
#include "err.h"
|
||||
#include "lafe_err.h"
|
||||
|
||||
#define EPOC_TIME (116444736000000000ULL)
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
IF(ENABLE_CPIO AND ENABLE_TEST)
|
||||
SET(bsdcpio_test_SOURCES
|
||||
../cmdline.c
|
||||
../../libarchive_fe/err.c
|
||||
../../libarchive_fe/lafe_err.c
|
||||
../../test_utils/test_utils.c
|
||||
../../test_utils/test_main.c
|
||||
test.h
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "test.h"
|
||||
|
||||
#include "../cpio.h"
|
||||
#include "err.h"
|
||||
#include "lafe_err.h"
|
||||
|
||||
#if !defined(_WIN32)
|
||||
#define ROOT "root"
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
#include "err.h"
|
||||
#include "lafe_err.h"
|
||||
|
||||
static void lafe_vwarnc(int, const char *, va_list) __LA_PRINTFLIKE(2, 0);
|
||||
|
||||
File renamed without changes.
@@ -31,7 +31,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "err.h"
|
||||
#include "lafe_err.h"
|
||||
#include "line_reader.h"
|
||||
|
||||
#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__BORLANDC__)
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
#include <readpassphrase.h>
|
||||
#endif
|
||||
|
||||
#include "err.h"
|
||||
#include "lafe_err.h"
|
||||
#include "passphrase.h"
|
||||
|
||||
#ifndef HAVE_READPASSPHRASE
|
||||
|
||||
+2
-2
@@ -18,8 +18,8 @@ IF(ENABLE_TAR)
|
||||
subst.c
|
||||
util.c
|
||||
write.c
|
||||
../libarchive_fe/err.c
|
||||
../libarchive_fe/err.h
|
||||
../libarchive_fe/lafe_err.c
|
||||
../libarchive_fe/lafe_err.h
|
||||
../libarchive_fe/lafe_platform.h
|
||||
../libarchive_fe/line_reader.c
|
||||
../libarchive_fe/line_reader.h
|
||||
|
||||
+1
-1
@@ -55,7 +55,7 @@
|
||||
#endif
|
||||
|
||||
#include "bsdtar.h"
|
||||
#include "err.h"
|
||||
#include "lafe_err.h"
|
||||
|
||||
#if ARCHIVE_VERSION_NUMBER < 4000000 && !defined(_PATH_DEFTAPE)
|
||||
// Libarchive 4.0 and later will NOT define _PATH_DEFTAPE
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <sddl.h>
|
||||
|
||||
#include "bsdtar.h"
|
||||
#include "err.h"
|
||||
#include "lafe_err.h"
|
||||
|
||||
/* This may actually not be needed anymore.
|
||||
* TODO: Review the error handling for chdir() failures and
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
#endif
|
||||
|
||||
#include "bsdtar.h"
|
||||
#include "err.h"
|
||||
#include "lafe_err.h"
|
||||
|
||||
/*
|
||||
* Short options for tar. Please keep this sorted.
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
#endif
|
||||
|
||||
#include "bsdtar.h"
|
||||
#include "err.h"
|
||||
#include "lafe_err.h"
|
||||
|
||||
struct creation_set {
|
||||
char *create_format;
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@
|
||||
#endif
|
||||
|
||||
#include "bsdtar.h"
|
||||
#include "err.h"
|
||||
#include "lafe_err.h"
|
||||
|
||||
struct progress_data {
|
||||
struct bsdtar *bsdtar;
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
#define REG_BASIC 0
|
||||
#endif
|
||||
|
||||
#include "err.h"
|
||||
#include "lafe_err.h"
|
||||
|
||||
struct subst_rule {
|
||||
struct subst_rule *next;
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@
|
||||
#endif
|
||||
|
||||
#include "bsdtar.h"
|
||||
#include "err.h"
|
||||
#include "lafe_err.h"
|
||||
#include "passphrase.h"
|
||||
|
||||
static size_t bsdtar_expand_char(char *, size_t, size_t, char);
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@
|
||||
#endif
|
||||
|
||||
#include "bsdtar.h"
|
||||
#include "err.h"
|
||||
#include "lafe_err.h"
|
||||
#include "line_reader.h"
|
||||
|
||||
#ifndef O_BINARY
|
||||
|
||||
@@ -16,8 +16,8 @@ IF(ENABLE_UNZIP)
|
||||
la_getline.c
|
||||
la_getline.h
|
||||
la_queue.h
|
||||
../libarchive_fe/err.c
|
||||
../libarchive_fe/err.h
|
||||
../libarchive_fe/lafe_err.c
|
||||
../libarchive_fe/lafe_err.h
|
||||
../libarchive_fe/lafe_platform.h
|
||||
../libarchive_fe/passphrase.c
|
||||
../libarchive_fe/passphrase.h
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@
|
||||
|
||||
#include "bsdunzip.h"
|
||||
#include "passphrase.h"
|
||||
#include "err.h"
|
||||
#include "lafe_err.h"
|
||||
|
||||
/* command-line options */
|
||||
static int a_opt; /* convert EOL */
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@
|
||||
#endif
|
||||
|
||||
#include "bsdunzip.h"
|
||||
#include "err.h"
|
||||
#include "lafe_err.h"
|
||||
|
||||
/*
|
||||
* Short options for bsdunzip. Please keep this sorted.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
############################################
|
||||
IF(ENABLE_UNZIP AND ENABLE_TEST)
|
||||
SET(bsdunzip_test_SOURCES
|
||||
../../libarchive_fe/err.c
|
||||
../../libarchive_fe/lafe_err.c
|
||||
../../test_utils/test_utils.c
|
||||
../../test_utils/test_main.c
|
||||
test.h
|
||||
|
||||
Reference in new issue
Block a user