summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHannes Eder <heder@google.com>2009-10-08 17:51:49 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2009-10-08 17:51:49 +0200
commit8e2cf11655fc7172fb58344883feb0721f499cb6 (patch)
treea9b10266f0a6bf583133d09b16e8a4f4d40dbe15
parent8fe783ae7d4dba6366a2850a83941df11f8ae9a2 (diff)
api: use ANSI style function
Signed-off-by: Hannes Eder <heder@google.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--src/conntrack/api.c4
-rw-r--r--src/expect/api.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/conntrack/api.c b/src/conntrack/api.c
index 56a3a8a..41d9c88 100644
--- a/src/conntrack/api.c
+++ b/src/conntrack/api.c
@@ -18,7 +18,7 @@
* In case of success, this function returns a valid pointer to a memory blob,
* otherwise NULL is returned and errno is set appropiately.
*/
-struct nf_conntrack *nfct_new()
+struct nf_conntrack *nfct_new(void)
{
struct nf_conntrack *ct;
@@ -66,7 +66,7 @@ size_t nfct_sizeof(const struct nf_conntrack *ct)
* does although _this could change in the future_. Therefore, do not assume
* that nfct_sizeof(ct) == nfct_maxsize().
*/
-size_t nfct_maxsize()
+size_t nfct_maxsize(void)
{
return sizeof(struct nf_conntrack);
}
diff --git a/src/expect/api.c b/src/expect/api.c
index b532e00..49f6ef1 100644
--- a/src/expect/api.c
+++ b/src/expect/api.c
@@ -18,7 +18,7 @@
* In case of success, this function returns a valid pointer to a memory blob,
* otherwise NULL is returned and errno is set appropiately.
*/
-struct nf_expect *nfexp_new()
+struct nf_expect *nfexp_new(void)
{
struct nf_expect *exp;
@@ -66,7 +66,7 @@ size_t nfexp_sizeof(const struct nf_expect *exp)
* does although _this could change in the future_. Therefore, do not assume
* that nfexp_sizeof(exp) == nfexp_maxsize().
*/
-size_t nfexp_maxsize()
+size_t nfexp_maxsize(void)
{
return sizeof(struct nf_expect);
}