[PATCH] Fix compiler warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Patch attached, please see commit message for details.

From a16aeb2f81acf59a4ded20144e8698491ad7f303 Mon Sep 17 00:00:00 2001
From: Martin Basti <mbasti@xxxxxxxxxx>
Date: Fri, 2 Sep 2016 09:57:54 +0200
Subject: [PATCH] Add missing void to slapi_get_cacertfile() declaration

This fixes compiler warning:

In file included from topology.h:9:0,
                 from topology_init.c:2:
/usr/include/dirsrv/slapi-plugin.h:6276:1: warning: function declaration
isn't a prototype [-Wstrict-prototypes]
 const char * slapi_get_cacertfile();
 ^~~~~
---
 ldap/servers/slapd/slapi-plugin.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ldap/servers/slapd/slapi-plugin.h b/ldap/servers/slapd/slapi-plugin.h
index 7022e59d0c8bcb60f3bb041b690b7db4edb1c307..2dda7e360dee955069c485eca4f8553d20d3c4af 100644
--- a/ldap/servers/slapd/slapi-plugin.h
+++ b/ldap/servers/slapd/slapi-plugin.h
@@ -6273,7 +6273,7 @@ int slapi_ldap_bind(
  * 
  * \return the full path of PEM format CA Cert
  */
-const char * slapi_get_cacertfile();
+const char * slapi_get_cacertfile(void);
 
 /**
  * Set the full path of PEM format CA Cert
-- 
2.7.4

--
389-devel mailing list
389-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://lists.fedoraproject.org/admin/lists/389-devel@xxxxxxxxxxxxxxxxxxxxxxx

[Index of Archives]     [Fedora Directory Announce]     [Fedora Users]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Review]     [Fedora Art]     [Fedora Music]     [Fedora Packaging]     [CentOS]     [Fedora SELinux]     [Big List of Linux Books]     [KDE Users]     [Fedora Art]     [Fedora Docs]

  Powered by Linux