chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
shared/condition: fix gcc5 warning
[elogind.git]
/
src
/
shared
/
audit.h
diff --git
a/src/shared/audit.h
b/src/shared/audit.h
index f2740bc42ca2a1d5604e150f052dab847e803dff..7e9c929ac6c652c6d94345fb38e353cf4ae5e926 100644
(file)
--- a/
src/shared/audit.h
+++ b/
src/shared/audit.h
@@
-1,7
+1,6
@@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-#ifndef fooaudithfoo
-#define fooaudithfoo
+#pragma once
/***
This file is part of systemd.
/***
This file is part of systemd.
@@
-22,8
+21,10
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#include "capability.h"
+#include <sys/types.h>
+
int audit_session_from_pid(pid_t pid, uint32_t *id);
int audit_loginuid_from_pid(pid_t pid, uid_t *uid);
int audit_session_from_pid(pid_t pid, uint32_t *id);
int audit_loginuid_from_pid(pid_t pid, uid_t *uid);
-#endif
+
+bool use_audit(void);