-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
15 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
docker-compose.override.yml | ||
tmp/ | ||
proxmox-backup-client*.tgz | ||
deb/ | ||
/.env.mk | ||
/release/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,13 @@ | ||
From ec5a9825066665ae18d939ad906013f2502f463c Mon Sep 17 00:00:00 2001 | ||
From: Kamil Trzcinski <[email protected]> | ||
Date: Mon, 7 Dec 2020 16:54:10 +0000 | ||
Subject: [PATCH] Fix getopt usage | ||
|
||
--- | ||
src/mini-journalreader.c | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/src/mini-journalreader.c b/src/mini-journalreader.c | ||
index 92176ac..f92d30c 100644 | ||
--- a/src/mini-journalreader.c | ||
+++ b/src/mini-journalreader.c | ||
@@ -213,11 +213,11 @@ int main(int argc, char *argv[]) { | ||
const char *endcursor = NULL; | ||
uint64_t begin = 0; | ||
uint64_t end = 0; | ||
- char c; | ||
+ int c; | ||
diff --git a/src/Makefile b/src/Makefile | ||
index ea8af24..d7f1351 100644 | ||
--- a/src/Makefile | ||
+++ b/src/Makefile | ||
@@ -2,7 +2,7 @@ PROGRAM=mini-journalreader | ||
SOURCES=mini-journalreader.c | ||
|
||
progname = argv[0]; | ||
|
||
- while ((c = (char)getopt (argc, argv, "b:e:d:n:f:t:jh")) != -1) { | ||
+ while ((c = getopt (argc, argv, "b:e:d:n:f:t:jh")) != -1) { | ||
switch (c) { | ||
case 'b': | ||
begin = arg_to_uint64(optarg); | ||
-- | ||
2.20.1 | ||
LIBS := libsystemd | ||
-CFLAGS += -Werror -Wall -Wextra -Wl,-z,relro -g -O2 | ||
+CFLAGS += -Wall -Wextra -Wl,-z,relro -g -O2 | ||
CFLAGS += -fstack-protector-strong -D_FORTIFY_SOURCE=2 | ||
CFLAGS += $(shell pkg-config --cflags ${LIBS}) | ||
LFLAGS += $(shell pkg-config --libs ${LIBS}) |