You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by yl...@apache.org on 2024/03/14 15:42:05 UTC

svn commit: r1916306 - in /apr/apr-util/branches/1.6.x: ./ dbd/apr_dbd.c misc/apu_dso.c

Author: ylavic
Date: Thu Mar 14 15:42:00 2024
New Revision: 1916306

URL: http://svn.apache.org/viewvc?rev=1916306&view=rev
Log:
dbd, dso: Fix prototypes warnings.

warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]

BZ: 68292

Submitted by: Mina Galić (me igalic.co)


Merges r1916305 from ^/apr/apr-util/branches/1.7.x
Merges r1914368 from ^/apr/apr/trunk (partially, apr-util-1.x bits only)

Modified:
    apr/apr-util/branches/1.6.x/   (props changed)
    apr/apr-util/branches/1.6.x/dbd/apr_dbd.c
    apr/apr-util/branches/1.6.x/misc/apu_dso.c

Propchange: apr/apr-util/branches/1.6.x/
------------------------------------------------------------------------------
  Merged /apr/apr/trunk:r1914368
  Merged /apr/apr-util/branches/1.7.x:r1916305

Modified: apr/apr-util/branches/1.6.x/dbd/apr_dbd.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.6.x/dbd/apr_dbd.c?rev=1916306&r1=1916305&r2=1916306&view=diff
==============================================================================
--- apr/apr-util/branches/1.6.x/dbd/apr_dbd.c (original)
+++ apr/apr-util/branches/1.6.x/dbd/apr_dbd.c Thu Mar 14 15:42:00 2024
@@ -48,19 +48,19 @@ static apr_uint32_t initialised = 0, in_
  * no longer be exported.
  */
 static apr_thread_mutex_t* mutex = NULL;
-APU_DECLARE(apr_status_t) apr_dbd_mutex_lock()
+APU_DECLARE(apr_status_t) apr_dbd_mutex_lock(void)
 {
     return apr_thread_mutex_lock(mutex);
 }
-APU_DECLARE(apr_status_t) apr_dbd_mutex_unlock()
+APU_DECLARE(apr_status_t) apr_dbd_mutex_unlock(void)
 {
     return apr_thread_mutex_unlock(mutex);
 }
 #else
-APU_DECLARE(apr_status_t) apr_dbd_mutex_lock() {
+APU_DECLARE(apr_status_t) apr_dbd_mutex_lock(void) {
     return APR_SUCCESS;
 }
-APU_DECLARE(apr_status_t) apr_dbd_mutex_unlock() {
+APU_DECLARE(apr_status_t) apr_dbd_mutex_unlock(void) {
     return APR_SUCCESS;
 }
 #endif

Modified: apr/apr-util/branches/1.6.x/misc/apu_dso.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.6.x/misc/apu_dso.c?rev=1916306&r1=1916305&r2=1916306&view=diff
==============================================================================
--- apr/apr-util/branches/1.6.x/misc/apu_dso.c (original)
+++ apr/apr-util/branches/1.6.x/misc/apu_dso.c Thu Mar 14 15:42:00 2024
@@ -41,19 +41,19 @@ static apr_hash_t *dsos = NULL;
 static apr_uint32_t initialised = 0, in_init = 1;
 
 #if APR_HAS_THREADS
-apr_status_t apu_dso_mutex_lock()
+apr_status_t apu_dso_mutex_lock(void)
 {
     return apr_thread_mutex_lock(mutex);
 }
-apr_status_t apu_dso_mutex_unlock()
+apr_status_t apu_dso_mutex_unlock(void)
 {
     return apr_thread_mutex_unlock(mutex);
 }
 #else
-apr_status_t apu_dso_mutex_lock() {
+apr_status_t apu_dso_mutex_lock(void) {
     return APR_SUCCESS;
 }
-apr_status_t apu_dso_mutex_unlock() {
+apr_status_t apu_dso_mutex_unlock(void) {
     return APR_SUCCESS;
 }
 #endif