]>
Commit | Line | Data |
---|---|---|
d1e07e81 MK |
1 | From 095667af0a837cb4df965764bc89730796e0a94d Mon Sep 17 00:00:00 2001 |
2 | From: Balazs Scheidler <bazsi@balabit.hu> | |
3 | Date: Mon, 25 Mar 2013 21:56:19 +0100 | |
4 | Subject: [PATCH] pacct: fixed compilation errors | |
5 | ||
6 | This plugin has rotten somewhat and become uncompilable, fixed all compilation | |
7 | issues. | |
8 | ||
9 | Signed-off-by: Balazs Scheidler <bazsi@balabit.hu> | |
10 | --- | |
11 | modules/pacctformat/pacct-format.c | 11 ++++++----- | |
12 | 1 file changed, 6 insertions(+), 5 deletions(-) | |
13 | ||
14 | diff --git a/modules/pacctformat/pacct-format.c b/modules/pacctformat/pacct-format.c | |
15 | index 646e3a0..597635c 100644 | |
16 | --- a/modules/pacctformat/pacct-format.c | |
17 | +++ b/modules/pacctformat/pacct-format.c | |
18 | @@ -23,6 +23,7 @@ | |
19 | ||
20 | #include "pacct-format.h" | |
21 | #include "logmsg.h" | |
22 | +#include "logproto-record-server.h" | |
23 | ||
24 | /* we're using the Linux header as the glibc one is incomplete */ | |
25 | #include <linux/acct.h> | |
26 | @@ -96,7 +97,7 @@ | |
27 | } | |
28 | ||
29 | void | |
30 | -pacct_format_handler(MsgFormatOptions *options, const guchar *data, gsize length, LogMessage *msg) | |
31 | +pacct_format_handler(const MsgFormatOptions *options, const guchar *data, gsize length, LogMessage *msg) | |
32 | { | |
33 | acct_t *rec; | |
34 | gsize len; | |
35 | @@ -151,14 +152,14 @@ | |
36 | log_msg_set_value(msg, handle_ac_comm, rec->ac_comm, len); | |
37 | } | |
38 | ||
39 | -void | |
40 | -pacct_construct_proto(MsgFormatOptions *options, LogTransport *transport, const LogProtoOptions *options) | |
41 | +static LogProtoServer * | |
42 | +pacct_construct_proto(const MsgFormatOptions *options, LogTransport *transport, const LogProtoServerOptions *proto_options) | |
43 | { | |
44 | - return log_proto_binary_record_server_new(transport, options, sizeof(acct_t)); | |
45 | + return log_proto_binary_record_server_new(transport, proto_options, sizeof(acct_t)); | |
46 | } | |
47 | ||
48 | MsgFormatHandler pacct_handler = | |
49 | { | |
50 | - .alter_proto_options = pacct_alter_proto_options, | |
51 | + .construct_proto = pacct_construct_proto, | |
52 | .parse = &pacct_format_handler | |
53 | }; | |
54 | -- | |
55 | 1.8.1.6 | |
56 |