summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/compress.h5
-rw-r--r--src/journal/journal-def.h5
-rw-r--r--src/journal/journal-file.h5
-rw-r--r--src/journal/journal-internal.h4
-rw-r--r--src/journal/journal-rate-limit.h5
-rw-r--r--src/journal/journald.h5
-rw-r--r--src/journal/lookup3.h5
7 files changed, 7 insertions, 27 deletions
diff --git a/src/journal/compress.h b/src/journal/compress.h
index 1cdfe3d48..b6f1aa0ed 100644
--- a/src/journal/compress.h
+++ b/src/journal/compress.h
@@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-#ifndef foocompresshfoo
-#define foocompresshfoo
+#pragma once
/***
This file is part of systemd.
@@ -34,5 +33,3 @@ bool uncompress_startswith(const void *src, uint64_t src_size,
void **buffer, uint64_t *buffer_size,
const void *prefix, uint64_t prefix_len,
uint8_t extra);
-
-#endif
diff --git a/src/journal/journal-def.h b/src/journal/journal-def.h
index ac89e61d9..096dd8ed8 100644
--- a/src/journal/journal-def.h
+++ b/src/journal/journal-def.h
@@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-#ifndef foojournaldefhfoo
-#define foojournaldefhfoo
+#pragma once
/***
This file is part of systemd.
@@ -182,5 +181,3 @@ _packed_ struct Header {
le64_t n_data;
le64_t n_fields;
};
-
-#endif
diff --git a/src/journal/journal-file.h b/src/journal/journal-file.h
index 1f7f73a78..eed49e062 100644
--- a/src/journal/journal-file.h
+++ b/src/journal/journal-file.h
@@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-#ifndef foojournalfilehfoo
-#define foojournalfilehfoo
+#pragma once
/***
This file is part of systemd.
@@ -147,5 +146,3 @@ int journal_file_get_cutoff_realtime_usec(JournalFile *f, usec_t *from, usec_t *
int journal_file_get_cutoff_monotonic_usec(JournalFile *f, sd_id128_t boot, usec_t *from, usec_t *to);
bool journal_file_rotate_suggested(JournalFile *f);
-
-#endif
diff --git a/src/journal/journal-internal.h b/src/journal/journal-internal.h
index 04f77540c..d17fdb2e9 100644
--- a/src/journal/journal-internal.h
+++ b/src/journal/journal-internal.h
@@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-#ifndef foojournalinternalhfoo
-#define foojournalinternalhfoo
+#pragma once
/***
This file is part of systemd.
@@ -112,4 +111,3 @@ struct sd_journal {
char *journal_make_match_string(sd_journal *j);
void journal_print_header(sd_journal *j);
-#endif
diff --git a/src/journal/journal-rate-limit.h b/src/journal/journal-rate-limit.h
index cbf526c64..648ab2278 100644
--- a/src/journal/journal-rate-limit.h
+++ b/src/journal/journal-rate-limit.h
@@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-#ifndef foojournalratelimithfoo
-#define foojournalratelimithfoo
+#pragma once
/***
This file is part of systemd.
@@ -30,5 +29,3 @@ typedef struct JournalRateLimit JournalRateLimit;
JournalRateLimit *journal_rate_limit_new(usec_t interval, unsigned burst);
void journal_rate_limit_free(JournalRateLimit *r);
int journal_rate_limit_test(JournalRateLimit *r, const char *id, int priority, uint64_t available);
-
-#endif
diff --git a/src/journal/journald.h b/src/journal/journald.h
index 3537a4942..acf19b4e7 100644
--- a/src/journal/journald.h
+++ b/src/journal/journald.h
@@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-#ifndef foojournaldhfoo
-#define foojournaldhfoo
+#pragma once
/***
This file is part of systemd.
@@ -106,5 +105,3 @@ int config_parse_storage(const char *filename, unsigned line, const char *sectio
const char *storage_to_string(Storage s);
Storage storage_from_string(const char *s);
-
-#endif
diff --git a/src/journal/lookup3.h b/src/journal/lookup3.h
index 31cc2f57b..502b42c20 100644
--- a/src/journal/lookup3.h
+++ b/src/journal/lookup3.h
@@ -1,7 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-#ifndef foolookup3hfoo
-#define foolookup3hfoo
+#pragma once
#include <inttypes.h>
#include <sys/types.h>
@@ -21,5 +20,3 @@ static inline uint64_t hash64(const void *data, size_t length) {
return ((uint64_t) a << 32ULL) | (uint64_t) b;
}
-
-#endif