summaryrefslogtreecommitdiffstats
path: root/ulogd/extensions
diff options
context:
space:
mode:
authorlaforge <laforge>2003-08-23 17:46:45 +0000
committerlaforge <laforge>2003-08-23 17:46:45 +0000
commit59d346ec44fa0e3e9470a489e2b378156fefbdb7 (patch)
tree6196ae1a50eef5d52fbf7dc0afdbdf2c20ecd6fa /ulogd/extensions
parent6f0d1856f30c6eefb43ad6fa15939fb887ba2ef7 (diff)
fix various compiler warnings
Diffstat (limited to 'ulogd/extensions')
-rw-r--r--ulogd/extensions/ulogd_BASE.c20
-rw-r--r--ulogd/extensions/ulogd_LOCAL.c4
-rw-r--r--ulogd/extensions/ulogd_PWSNIFF.c6
3 files changed, 15 insertions, 15 deletions
diff --git a/ulogd/extensions/ulogd_BASE.c b/ulogd/extensions/ulogd_BASE.c
index 738d5ef..07a68ee 100644
--- a/ulogd/extensions/ulogd_BASE.c
+++ b/ulogd/extensions/ulogd_BASE.c
@@ -1,4 +1,4 @@
-/* ulogd_MAC.c, Version $Revision: 1.18 $
+/* ulogd_MAC.c, Version $Revision: 1.19 $
*
* ulogd interpreter plugin for
* o MAC addresses
@@ -26,7 +26,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- * $Id: ulogd_BASE.c,v 1.18 2003/04/27 20:56:15 laforge Exp $
+ * $Id: ulogd_BASE.c,v 1.19 2003/08/23 13:02:11 laforge Exp $
*
*/
@@ -52,7 +52,7 @@ static ulog_iret_t raw_rets[] = {
{ ui32: 0 } },
};
-static ulog_iret_t *_interp_raw(struct ulog_interpreter *ip,
+static ulog_iret_t *_interp_raw(ulog_interpreter_t *ip,
ulog_packet_msg_t *pkt)
{
unsigned char *p;
@@ -385,13 +385,13 @@ static ulog_iret_t *_interp_ahesp(struct ulog_interpreter *ip,
static ulog_interpreter_t base_ip[] = {
- { NULL, "raw", 0, &_interp_raw, 3, &raw_rets },
- { NULL, "oob", 0, &_interp_oob, 6, &oob_rets },
- { NULL, "ip", 0, &_interp_iphdr, 10, &iphdr_rets },
- { NULL, "tcp", 0, &_interp_tcphdr, 12, &tcphdr_rets },
- { NULL, "icmp", 0, &_interp_icmp, 6, &icmphdr_rets },
- { NULL, "udp", 0, &_interp_udp, 3, &udphdr_rets },
- { NULL, "ahesp", 0, &_interp_ahesp, 1, &ahesphdr_rets },
+ { NULL, "raw", 0, &_interp_raw, 3, raw_rets },
+ { NULL, "oob", 0, &_interp_oob, 6, oob_rets },
+ { NULL, "ip", 0, &_interp_iphdr, 10, iphdr_rets },
+ { NULL, "tcp", 0, &_interp_tcphdr, 12, tcphdr_rets },
+ { NULL, "icmp", 0, &_interp_icmp, 6, icmphdr_rets },
+ { NULL, "udp", 0, &_interp_udp, 3, udphdr_rets },
+ { NULL, "ahesp", 0, &_interp_ahesp, 1, ahesphdr_rets },
{ NULL, "", 0, NULL, 0, NULL },
};
diff --git a/ulogd/extensions/ulogd_LOCAL.c b/ulogd/extensions/ulogd_LOCAL.c
index f6078c4..41ebe5b 100644
--- a/ulogd/extensions/ulogd_LOCAL.c
+++ b/ulogd/extensions/ulogd_LOCAL.c
@@ -69,7 +69,7 @@ static ulog_iret_t local_rets[] = {
static ulog_interpreter_t local_ip[] = {
- { NULL, "local", 0, &_interp_local, 2, &local_rets },
+ { NULL, "local", 0, &_interp_local, 2, local_rets },
{ NULL, "", 0, NULL, 0, NULL },
};
@@ -93,7 +93,7 @@ void _init(void)
exit(2);
}
/* strip off everything after first '.' */
- if (tmp = strchr(hostname, '.'))
+ if ((tmp = strchr(hostname, '.')))
*tmp = '\0';
_local_reg_ip();
diff --git a/ulogd/extensions/ulogd_PWSNIFF.c b/ulogd/extensions/ulogd_PWSNIFF.c
index 3243b6c..7c2cb65 100644
--- a/ulogd/extensions/ulogd_PWSNIFF.c
+++ b/ulogd/extensions/ulogd_PWSNIFF.c
@@ -1,4 +1,4 @@
-/* ulogd_PWSNIFF.c, Version $Revision: 1.8 $
+/* ulogd_PWSNIFF.c, Version $Revision: 1.9 $
*
* ulogd logging interpreter for POP3 / FTP like plaintext passwords.
*
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * $Id: ulogd_PWSNIFF.c,v 1.8 2003/05/03 12:44:15 laforge Exp $
+ * $Id: ulogd_PWSNIFF.c,v 1.9 2003/08/23 13:02:11 laforge Exp $
*
*/
@@ -140,7 +140,7 @@ static ulog_iret_t pwsniff_rets[] = {
};
static ulog_interpreter_t base_ip[] = {
- { NULL, "pwsniff", 0, &_interp_pwsniff, 2, &pwsniff_rets },
+ { NULL, "pwsniff", 0, &_interp_pwsniff, 2, pwsniff_rets },
{ NULL, "", 0, NULL, 0, NULL },
};
void _base_reg_ip(void)