summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2008-09-06 22:43:59 -1000
committerDavid Cantrell <dcantrell@redhat.com>2008-09-06 22:43:59 -1000
commit03632989910557d955c1b5362c401addc62d0146 (patch)
tree799e8eef249d0ee64ab57a95cead4ccf0522b8c5 /isys
parent4dcee59aa71b52cb5f7b7e5c70fd2106b48df13f (diff)
downloadanaconda-03632989910557d955c1b5362c401addc62d0146.tar.gz
anaconda-03632989910557d955c1b5362c401addc62d0146.tar.xz
anaconda-03632989910557d955c1b5362c401addc62d0146.zip
Use struct audit_reply instead of struct auditd_reply_list
libaudit API changed a bit. Only have audit_reply now, and not auditd_reply_list.
Diffstat (limited to 'isys')
-rw-r--r--isys/auditd.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/isys/auditd.c b/isys/auditd.c
index 971640f0f..bbc626711 100644
--- a/isys/auditd.c
+++ b/isys/auditd.c
@@ -44,7 +44,7 @@ static void sig_done(int sig)
}
static void do_auditd(int fd) {
- struct auditd_reply_list *rep = NULL;
+ struct audit_reply rep;
sigset_t sigs;
struct sigaction sa;
struct pollfd pds = {
@@ -74,10 +74,7 @@ static void do_auditd(int fd) {
struct timespec timeout = { -1, -1 };
int retval;
- if (rep == NULL) {
- if (!(rep = calloc(1, sizeof (*rep))))
- return;
- }
+ memset(&rep, 0, sizeof(rep));
do {
retval = ppoll(&pds, 1, &timeout, &sigs);
@@ -86,7 +83,7 @@ static void do_auditd(int fd) {
if (done)
break;
- if (audit_get_reply(fd, &rep->reply, GET_REPLY_NONBLOCKING, 0) > 0) {
+ if (audit_get_reply(fd, &rep, GET_REPLY_NONBLOCKING, 0) > 0) {
/* we don't actually want to do anything here. */
;
}