aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-11 10:39:45 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-11 10:39:45 +0100
commitb988b0a6b8afd8d459bc9a2528e834f63a3d59b2 (patch)
tree3a6317b10dee2c7f69dc3b85b114c18065166839
parent3058622fa8a7a1d1b15246b3ca6809ef643036f3 (diff)
downloadpseudo-oe-core.tar.gz
pseudo-oe-core.tar.bz2
pseudo-oe-core.zip
Revert "client: Fix some compiler warnings"oe-core
This change seems to cause faults in OE builds, not investigated why but revert until we can debug. "bitbake linux-libc-headers" reproduces all the time. This reverts commit 04bca0f85d57da1d0ed0419780df296f8b0ff81d.
-rw-r--r--pseudo_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pseudo_client.c b/pseudo_client.c
index 6edd2ee..579db33 100644
--- a/pseudo_client.c
+++ b/pseudo_client.c
@@ -846,7 +846,7 @@ pseudo_root_path(const char *func, int line, int dirfd, const char *path, int le
pseudo_magic();
if (!rc) {
pseudo_diag("couldn't allocate absolute path for '%s'.\n",
- path ? path : "null");
+ path);
}
pseudo_debug(PDBGF_CHROOT, "root_path [%s, %d]: '%s' from '%s'\n",
func, line,
@@ -1589,7 +1589,7 @@ int pseudo_client_ignore_path(const char *path) {
pseudo_msg_t *
pseudo_client_op(pseudo_op_t op, int access, int fd, int dirfd, const char *path, const PSEUDO_STATBUF *buf, ...) {
pseudo_msg_t *result = 0;
- static pseudo_msg_t msg = { .type = PSEUDO_MSG_OP };
+ pseudo_msg_t msg = { .type = PSEUDO_MSG_OP };
size_t pathlen = -1;
int do_request = 0;
char *path_extra_1 = 0;