summaryrefslogtreecommitdiff
path: root/src/systemd/sd-journal.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-11-26 11:23:52 +0100
committerLennart Poettering <lennart@poettering.net>2020-01-31 15:02:00 +0100
commit68312977db5e306d617e8fe9d73481a8682d0bfc (patch)
treef29338d85ac9bfd53730776d234a53a3a07b912b /src/systemd/sd-journal.h
parente7238caf0cf53555e2e858150c543bd802fd28f5 (diff)
downloadsystemd-68312977db5e306d617e8fe9d73481a8682d0bfc.tar.gz
journal: properly mark two definitions that are deprecated with GCC attributes for that
Diffstat (limited to 'src/systemd/sd-journal.h')
-rw-r--r--src/systemd/sd-journal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemd/sd-journal.h b/src/systemd/sd-journal.h
index b4bf3b9176..dbca4ebce2 100644
--- a/src/systemd/sd-journal.h
+++ b/src/systemd/sd-journal.h
@@ -70,7 +70,7 @@ enum {
SD_JOURNAL_CURRENT_USER = 1 << 3,
SD_JOURNAL_OS_ROOT = 1 << 4,
- SD_JOURNAL_SYSTEM_ONLY = SD_JOURNAL_SYSTEM /* deprecated name */
+ SD_JOURNAL_SYSTEM_ONLY _sd_deprecated_ = SD_JOURNAL_SYSTEM /* deprecated name */
};
/* Wakeup event types */
@@ -85,7 +85,7 @@ int sd_journal_open_directory(sd_journal **ret, const char *path, int flags);
int sd_journal_open_directory_fd(sd_journal **ret, int fd, int flags);
int sd_journal_open_files(sd_journal **ret, const char **paths, int flags);
int sd_journal_open_files_fd(sd_journal **ret, int fds[], unsigned n_fds, int flags);
-int sd_journal_open_container(sd_journal **ret, const char *machine, int flags); /* deprecated */
+int sd_journal_open_container(sd_journal **ret, const char *machine, int flags) _sd_deprecated_; /* deprecated */
void sd_journal_close(sd_journal *j);
int sd_journal_previous(sd_journal *j);