summaryrefslogtreecommitdiff
path: root/devel/libnet11/patches/patch-aa
blob: a0a2a4ca6e46330d9a52399c31ba62ee56118d82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
$NetBSD: patch-aa,v 1.2 2012/05/04 16:11:02 joerg Exp $

libnet_getgre_length is used by different TUs, so it certainly is not inline.
void foo() is different from void foo(void), at least in C.

--- include/libnet/libnet-functions.h.orig	2004-03-25 18:50:48.000000000 +0000
+++ include/libnet/libnet-functions.h
@@ -1429,7 +1429,7 @@ libnet_t *l, libnet_ptag_t ptag);
  * @param ptag protocol tag to modify an existing header, 0 to build a new one
  * @return protocol tag value on success, -1 on error
  */
-inline u_int32_t
+u_int32_t
 libnet_getgre_length(u_int16_t fv);
 
 /**
@@ -1837,7 +1837,7 @@ libnet_cq_find_by_label(char *label);
  * member context.
  */
 void
-libnet_cq_destroy();
+libnet_cq_destroy(void);
 
 /**
  * [Context Queue] 
@@ -1859,7 +1859,7 @@ libnet_cq_destroy();
  * @return the head of the context queue
  */
 libnet_t *
-libnet_cq_head();
+libnet_cq_head(void);
 
 /**
  * [Context Queue] 
@@ -1867,7 +1867,7 @@ libnet_cq_head();
  * @return 1 if at the end of the context queue, 0 otherwise
  */
 int
-libnet_cq_last();
+libnet_cq_last(void);
 
 /**
  * [Context Queue] 
@@ -1875,7 +1875,7 @@ libnet_cq_last();
  * @reutrn the next context from the context queue
  */
 libnet_t *
-libnet_cq_next();
+libnet_cq_next(void);
 
 /**
  * [Context Queue] 
@@ -1883,7 +1883,7 @@ libnet_cq_next();
  * @return the number of libnet contexts currently in the queue
  */
 u_int32_t
-libnet_cq_size();
+libnet_cq_size(void);
 
 /**
  * [Diagnostic]