Monday, September 5, 2016

[389-commits] ldap/servers

ldap/servers/slapd/counters.c | 6 +++---
ldap/servers/slapd/csn.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit d46a0f6479417e32db7f91a019f7bcffabe80f82
Author: William Brown <firstyear@redhat.com>
Date: Mon Sep 5 10:01:38 2016 +1000

Ticket 48979 - Strict Prototypes

Bug Description: Fix strict prototypes for freeipa development.

Fix Description: If csn and counters to use (void) rather than () in function
definitions.

https://fedorahosted.org/389/ticket/48979

Author: wibrown

Review by: lslebodn (Thanks!)

diff --git a/ldap/servers/slapd/counters.c b/ldap/servers/slapd/counters.c
index 19e6562..1d4ac89 100644
--- a/ldap/servers/slapd/counters.c
+++ b/ldap/servers/slapd/counters.c
@@ -29,7 +29,7 @@ static int num_counters= 0;
static struct counter *counters= NULL;

static int
-count_counters()
+count_counters(void)
{
int i= 0;
PR_DEFINE_COUNTER(qh);
@@ -51,7 +51,7 @@ count_counters()
}

static int
-do_fetch_counters()
+do_fetch_counters(void)
{
int i= 0;
PR_DEFINE_COUNTER(qh);
@@ -79,7 +79,7 @@ do_fetch_counters()
}

static void
-fetch_counters()
+fetch_counters(void)
{
int i;
if(counters==NULL)
diff --git a/ldap/servers/slapd/csn.c b/ldap/servers/slapd/csn.c
index a3f4815..203789d 100644
--- a/ldap/servers/slapd/csn.c
+++ b/ldap/servers/slapd/csn.c
@@ -44,7 +44,7 @@ static Slapi_Counter *slapi_csn_counter_exist;

#ifdef DEBUG
static void
-csn_create_counters()
+csn_create_counters(void)
{
slapi_csn_counter_created = slapi_counter_new();
slapi_csn_counter_deleted = slapi_counter_new();
@@ -53,7 +53,7 @@ csn_create_counters()
}

No comments:

Post a Comment