]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
fix various compiler warnings
authorlaforge <laforge>
Sat, 23 Aug 2003 17:46:45 +0000 (17:46 +0000)
committerlaforge <laforge>
Sat, 23 Aug 2003 17:46:45 +0000 (17:46 +0000)
extensions/ulogd_BASE.c
extensions/ulogd_LOCAL.c
extensions/ulogd_PWSNIFF.c

index 738d5effc2ba6bc40130bff1e8a26eb33e4752df..07a68eec6cc46f10d3172b586fe7153a17739135 100644 (file)
@@ -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 }, 
 };
 
index f6078c469230f82effdfa0f0e174db0d2d551d08..41ebe5be10ceff44f3257023b7a05da102c6428b 100644 (file)
@@ -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();
index 3243b6cc5e8b026333db30b0f20c9e9cb166d1dd..7c2cb65e3f6ad72b01b8e5a36e09bac4f3c6a480 100644 (file)
@@ -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)