diff options
author | Sami Kerola | 2016-07-16 13:57:25 +0200 |
---|---|---|
committer | Sami Kerola | 2017-02-05 00:39:36 +0100 |
commit | 48e7ed5e3fec37307a3153b8082ca365083c68e7 (patch) | |
tree | 870fc7521943ada006a22886383f0ec417f8eeef /sys-utils/hwclock.c | |
parent | hwclock: remove FLOOR macro in favour of floor(3) (diff) | |
download | kernel-qcow2-util-linux-48e7ed5e3fec37307a3153b8082ca365083c68e7.tar.gz kernel-qcow2-util-linux-48e7ed5e3fec37307a3153b8082ca365083c68e7.tar.xz kernel-qcow2-util-linux-48e7ed5e3fec37307a3153b8082ca365083c68e7.zip |
hwclock: remove hwclock_exit() indirection
Reviewed-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/hwclock.c')
-rw-r--r-- | sys-utils/hwclock.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c index 3cc425f9d..10cb02a50 100644 --- a/sys-utils/hwclock.c +++ b/sys-utils/hwclock.c @@ -1912,22 +1912,18 @@ int main(int argc, char **argv) return rc; /* Not reached */ } -#ifdef HAVE_LIBAUDIT -/* - * hwclock_exit calls either this function or plain exit depending - * HAVE_LIBAUDIT see also clock.h - */ -void __attribute__((__noreturn__)) hwaudit_exit(int status) +void __attribute__((__noreturn__)) hwclock_exit(int status) { +#ifdef HAVE_LIBAUDIT if (hwaudit_on) { audit_log_user_message(hwaudit_fd, AUDIT_USYS_CONFIG, "op=change-system-time", NULL, NULL, NULL, status ? 0 : 1); close(hwaudit_fd); } +#endif exit(status); } -#endif /* * History of this program: |