Skip to content

Commit ce2ef84

Browse files
committed
Fix strict prototype warnings
1 parent 26d50e6 commit ce2ef84

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

apc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ PHP_APCU_API int _apc_register_serializer(
124124

125125
/* {{{ apc_get_serializers
126126
fetches the list of serializers */
127-
PHP_APCU_API apc_serializer_t* apc_get_serializers(); /* }}} */
127+
PHP_APCU_API apc_serializer_t* apc_get_serializers(void); /* }}} */
128128

129129
/* {{{ apc_find_serializer
130130
finds a previously registered serializer by name */

apc_lock.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ typedef apc_windows_cs_rwlock_t apc_lock_t;
7272
apc_lock_cleanup destroys those attributes
7373
This saves us from having to create and destroy attributes for
7474
every lock we use at runtime */
75-
PHP_APCU_API zend_bool apc_lock_init();
76-
PHP_APCU_API void apc_lock_cleanup();
75+
PHP_APCU_API zend_bool apc_lock_init(void);
76+
PHP_APCU_API void apc_lock_cleanup(void);
7777
/*
7878
The following functions should be self explanitory:
7979
*/

apc_mutex.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727

2828
typedef pthread_mutex_t apc_mutex_t;
2929

30-
PHP_APCU_API zend_bool apc_mutex_init();
31-
PHP_APCU_API void apc_mutex_cleanup();
30+
PHP_APCU_API zend_bool apc_mutex_init(void);
31+
PHP_APCU_API void apc_mutex_cleanup(void);
3232
PHP_APCU_API zend_bool apc_mutex_create(apc_mutex_t *lock);
3333
PHP_APCU_API zend_bool apc_mutex_lock(apc_mutex_t *lock);
3434
PHP_APCU_API zend_bool apc_mutex_unlock(apc_mutex_t *lock);

apc_signal.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ typedef struct apc_signal_info_t {
3434
apc_signal_entry_t **prev; /* Previous signal handlers */
3535
} apc_signal_info_t;
3636

37-
void apc_set_signals();
38-
void apc_shutdown_signals();
37+
void apc_set_signals(void);
38+
void apc_shutdown_signals(void);
3939

4040
#endif
4141

0 commit comments

Comments
 (0)