chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nss-myhostname: ensure that glibc's assert is used
[elogind.git]
/
src
/
journal
/
coredumpctl.c
diff --git
a/src/journal/coredumpctl.c
b/src/journal/coredumpctl.c
index 99ca26932799d41ab54d389d7e4d22045bcd0d8d..0bbfff2ecdc30aec0afac4c0eb7590822b7ac048 100644
(file)
--- a/
src/journal/coredumpctl.c
+++ b/
src/journal/coredumpctl.c
@@
-35,6
+35,7
@@
#include "path-util.h"
#include "pager.h"
#include "macro.h"
#include "path-util.h"
#include "pager.h"
#include "macro.h"
+#include "journal-internal.h"
static enum {
ACTION_NONE,
static enum {
ACTION_NONE,
@@
-103,7
+104,7
@@
static int add_match(Set *set, const char *match) {
unsigned pid;
const char* prefix;
char *pattern = NULL;
unsigned pid;
const char* prefix;
char *pattern = NULL;
-
char _cleanup_free_
*p = NULL;
+
_cleanup_free_ char
*p = NULL;
if (strchr(match, '='))
prefix = "";
if (strchr(match, '='))
prefix = "";
@@
-268,7
+269,7
@@
static int retrieve(const void *data,
}
static void print_field(FILE* file, sd_journal *j) {
}
static void print_field(FILE* file, sd_journal *j) {
-
const char _cleanup_free_
*value = NULL;
+
_cleanup_free_ const char
*value = NULL;
const void *d;
size_t l;
const void *d;
size_t l;
@@
-281,7
+282,7
@@
static void print_field(FILE* file, sd_journal *j) {
}
static int print_entry(FILE* file, sd_journal *j, int had_legend) {
}
static int print_entry(FILE* file, sd_journal *j, int had_legend) {
- const char _cleanup_free_
+ _cleanup_free_ const char
*pid = NULL, *uid = NULL, *gid = NULL,
*sgnl = NULL, *exe = NULL;
const void *d;
*pid = NULL, *uid = NULL, *gid = NULL,
*sgnl = NULL, *exe = NULL;
const void *d;
@@
-519,11
+520,11
@@
finish:
}
int main(int argc, char *argv[]) {
}
int main(int argc, char *argv[]) {
-
sd_journal _cleanup_journal_close_
*j = NULL;
+
_cleanup_journal_close_ sd_journal
*j = NULL;
const char* match;
Iterator it;
int r = 0;
const char* match;
Iterator it;
int r = 0;
-
Set _cleanup_set_free_free_
*matches = NULL;
+
_cleanup_set_free_free_ Set
*matches = NULL;
setlocale(LC_ALL, "");
log_parse_environment();
setlocale(LC_ALL, "");
log_parse_environment();