summaryrefslogtreecommitdiff
path: root/staging/layer2.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-09-03 16:55:59 +0200
committerTobias Klauser <tklauser@distanz.ch>2014-09-03 16:55:59 +0200
commit62b58a361fccec935d7940fb7ab86508ccdceb00 (patch)
treece2b86398f9f9b96aea8c5268ab2e1db15bf8148 /staging/layer2.c
parent82042e7d91732ec0710c55358d86baafe24c4756 (diff)
mausezahn: Fix non-ANSI function declarations
ANSI C doesn't allow empty parameter list, thus use void where appropriate. This fixes the corresponding sparse warning. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'staging/layer2.c')
-rw-r--r--staging/layer2.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/staging/layer2.c b/staging/layer2.c
index ebbc7d8..3a48820 100644
--- a/staging/layer2.c
+++ b/staging/layer2.c
@@ -109,7 +109,7 @@
// senderip is the spoofed IP,
// targetmac and targetip identifies the receiver.
//
-int send_arp ()
+int send_arp(void)
{
libnet_t *l;
libnet_ptag_t t;
@@ -410,9 +410,7 @@ int send_arp ()
//
// defaults:
// mz assumes you want to become root bridge! (rid=bid)
-//
-int send_bpdu ()
-{
+int send_bpdu(void) {
// BPDU parameters:
u_int16_t