systemd/fixppc.patch
Frederic Crozat 8b270beaa1 - Add 0001-add-sparse-support-to-detect-endianness-bug.patch: fix
endianness error, preventing journal to work properly on ppc.
- Add fixppc.patch: fix build and warnings on ppc.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=262
2012-03-21 12:59:57 +00:00

27 lines
1.1 KiB
Diff

diff --git a/src/journal/cat.c b/src/journal/cat.c
index 31d76f3..8a51fb7 100644
--- a/src/journal/cat.c
+++ b/src/journal/cat.c
@@ -33,7 +33,7 @@
#include "build.h"
static char *arg_identifier = NULL;
-static char arg_priority = LOG_INFO;
+static int8_t arg_priority = LOG_INFO;
static bool arg_level_prefix = true;
static int help(void) {
diff --git a/src/journal/journald.c b/src/journal/journald.c
index baad3ab..1899ad6 100644
--- a/src/journal/journald.c
+++ b/src/journal/journald.c
@@ -2144,7 +2144,7 @@ static int process_event(Server *s, struct epoll_event *ev) {
uint8_t buf[CMSG_SPACE(sizeof(struct ucred)) +
CMSG_SPACE(sizeof(struct timeval)) +
CMSG_SPACE(sizeof(int)) +
- CMSG_SPACE(PAGE_SIZE)]; /* selinux label */
+ CMSG_SPACE(PATH_MAX)]; /* selinux label */
} control;
ssize_t n;
int v;