b.a.t.m.a.n.lists.open-mesh.org archive mirror
 help / color / mirror / Atom feed
From: Sven Eckelmann <sven.eckelmann@gmx.de>
To: b.a.t.m.a.n@open-mesh.net
Subject: [B.A.T.M.A.N.] [PATCH] Suppress warning about unused parameter in bsd/*.c
Date: Wed, 14 Jan 2009 11:58:03 +0100	[thread overview]
Message-ID: <1231930683-5625-1-git-send-email-sven.eckelmann@gmx.de> (raw)
In-Reply-To: <200901140145.34127.sven.eckelmann@gmx.de>

Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
---
 batman/bsd/kernel.c |   10 +++++-----
 batman/bsd/route.c  |   12 ++++++------
 batman/bsd/tun.c    |    6 +++---
 3 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/batman/bsd/kernel.c b/batman/bsd/kernel.c
index 0a126d4..b98c06f 100644
--- a/batman/bsd/kernel.c
+++ b/batman/bsd/kernel.c
@@ -76,7 +76,7 @@ int32_t get_forwarding(void)
 	return state;
 }
 
-void set_send_redirects(int32_t state, char* dev)
+void set_send_redirects(int32_t state, char* BATMANUNUSED(dev))
 {
 	int mib[4];
 
@@ -97,7 +97,7 @@ void set_send_redirects(int32_t state, char* dev)
 		err(1, "Cannot change net.inet.ip.redirect");
 }
 
-int32_t get_send_redirects(char *dev)
+int32_t get_send_redirects(char *BATMANUNUSED(dev))
 {
 	int state;
 	size_t len;
@@ -117,20 +117,20 @@ int32_t get_send_redirects(char *dev)
 	return state;
 }
 
-void set_rp_filter( int32_t state, char* dev )
+void set_rp_filter( int32_t BATMANUNUSED(state), char* BATMANUNUSED(dev) )
 {
 	/* On BSD, reverse path filtering should be disabled in the firewall. */
 	return;
 }
 
-int32_t get_rp_filter( char *dev )
+int32_t get_rp_filter( char *BATMANUNUSED(dev) )
 {
 	/* On BSD, reverse path filtering should be disabled in the firewall. */
 	return 0;
 }
 
 
-int8_t bind_to_iface( int32_t udp_recv_sock, char *dev )
+int8_t bind_to_iface( int32_t BATMANUNUSED(udp_recv_sock), char *BATMANUNUSED(dev) )
 {
 	/* XXX: Is binding a socket to a specific
 	 * interface possible in *BSD?
diff --git a/batman/bsd/route.c b/batman/bsd/route.c
index 953e995..8c9de48 100644
--- a/batman/bsd/route.c
+++ b/batman/bsd/route.c
@@ -139,8 +139,8 @@ static uint32_t get_dev_addr(char *dev)
 	return addr->sin_addr.s_addr;
 }
 
-void add_del_route(uint32_t dest, uint8_t netmask, uint32_t router, uint32_t src_ip,
-		int32_t ifi, char *dev, uint8_t rt_table, int8_t route_type, int8_t del)
+void add_del_route(uint32_t dest, uint8_t netmask, uint32_t router, uint32_t BATMANUNUSED(src_ip),
+		int32_t BATMANUNUSED(ifi), char *dev, uint8_t BATMANUNUSED(rt_table), int8_t BATMANUNUSED(route_type), int8_t del)
 {
 	char dest_str[16], router_str[16];
 	struct rt_msg msg;
@@ -203,20 +203,20 @@ void add_del_route(uint32_t dest, uint8_t netmask, uint32_t router, uint32_t src
 }
 
 
-void add_del_rule(uint32_t network, uint8_t netmask, int8_t rt_table,
-		uint32_t prio, char *iif, int8_t dst_rule, int8_t del )
+void add_del_rule(uint32_t BATMANUNUSED(network), uint8_t BATMANUNUSED(netmask), int8_t BATMANUNUSED(rt_table),
+		uint32_t BATMANUNUSED(prio), char *BATMANUNUSED(iif), int8_t BATMANUNUSED(dst_rule), int8_t BATMANUNUSED(del) )
 {
 	fprintf(stderr, "add_del_rule: not implemented\n");
 	return;
 }
 
-int add_del_interface_rules( int8_t del )
+int add_del_interface_rules( int8_t BATMANUNUSED(del) )
 {
 	fprintf(stderr, "add_del_interface_rules: not implemented\n");
 	return 0;
 }
 
-int flush_routes_rules( int8_t rt_table )
+int flush_routes_rules( int8_t BATMANUNUSED(rt_table) )
 {
 	fprintf(stderr, "flush_routes_rules: not implemented\n");
 	return 0;
diff --git a/batman/bsd/tun.c b/batman/bsd/tun.c
index 7d4c79c..b44dac3 100644
--- a/batman/bsd/tun.c
+++ b/batman/bsd/tun.c
@@ -90,7 +90,7 @@ static int open_tun_any(char *dev_name, size_t dev_name_size)
 #endif
 
 /* Probe for tun interface availability */
-int8_t probe_tun(uint8_t print_to_stderr)
+int8_t probe_tun(uint8_t BATMANUNUSED(print_to_stderr))
 {
 	int fd;
 	fd = open_tun_any(NULL, 0);
@@ -105,7 +105,7 @@ int8_t del_dev_tun(int32_t fd)
 	return close(fd);
 }
 
-int8_t set_tun_addr(int32_t fd, uint32_t tun_addr, char *tun_ifname)
+int8_t set_tun_addr(int32_t BATMANUNUSED(fd), uint32_t tun_addr, char *tun_ifname)
 {
 	int so;
 	struct ifreq ifr_tun;
@@ -136,7 +136,7 @@ int8_t set_tun_addr(int32_t fd, uint32_t tun_addr, char *tun_ifname)
 }
 
 int8_t add_dev_tun(struct batman_if *batman_if, uint32_t tun_addr,
-		char *tun_dev, size_t tun_dev_size, int32_t *fd, int32_t *ifi)
+		char *tun_dev, size_t tun_dev_size, int32_t *fd, int32_t *BATMANUNUSED(ifi))
 {
 	int so;
 	struct ifreq ifr_tun, ifr_if;
-- 
1.6.0.6


  parent reply	other threads:[~2009-01-14 10:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-13 10:52 [B.A.T.M.A.N.] [PATCH] Compile vis under FreeBSD and OSX Antoine van Gelder
2009-01-13 18:46 ` [B.A.T.M.A.N.] " Sven Eckelmann
2009-01-13 21:29   ` Antoine van Gelder
2009-01-14  0:45     ` Sven Eckelmann
2009-01-14  0:59       ` [B.A.T.M.A.N.] [PATCH] Sync definitions in bsd/* with definitions in os.h Sven Eckelmann
2009-01-14  1:36       ` [B.A.T.M.A.N.] Compile vis under FreeBSD and OSX Sven Eckelmann
2009-02-06 18:00         ` [B.A.T.M.A.N.] [PATCH] Introduce get_tunneled_(protocol|udpdest) for better portability Sven Eckelmann
2009-02-06 18:00         ` [B.A.T.M.A.N.] [PATCH] Add bsd-stubs for nat functionality Sven Eckelmann
2009-01-14 10:56       ` [B.A.T.M.A.N.] Compile vis under FreeBSD and OSX Sven Eckelmann
2009-01-14 14:55         ` Antoine van Gelder
2009-01-14 10:58       ` Sven Eckelmann [this message]
2009-01-18 20:17       ` [B.A.T.M.A.N.] Compile batmand under FreeBSD and OSX (Was: Compile vis) Antoine van Gelder
2009-01-13 18:46 ` [B.A.T.M.A.N.] [PATCH] Fix compilation on freebsd Sven Eckelmann
2009-01-13 19:00   ` Outback Dingo
2009-01-13 20:45 ` [B.A.T.M.A.N.] [PATCH] Compile vis under FreeBSD and OSX Simon Wunderlich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1231930683-5625-1-git-send-email-sven.eckelmann@gmx.de \
    --to=sven.eckelmann@gmx.de \
    --cc=b.a.t.m.a.n@open-mesh.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).