Skip to content

Commit d9cca44

Browse files
committed
Fix strict prototype for php_closelog
1 parent b3e6fae commit d9cca44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

main/php_syslog.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void php_openlog(const char *ident, int option, int facility)
7777
PG(have_called_openlog) = 1;
7878
}
7979

80-
void php_closelog()
80+
void php_closelog(void)
8181
{
8282
closelog();
8383
PG(have_called_openlog) = 0;

main/php_syslog.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ BEGIN_EXTERN_C()
3838
PHPAPI void php_syslog_str(int priority, const zend_string* message);
3939
PHPAPI void php_syslog(int, const char *format, ...);
4040
PHPAPI void php_openlog(const char *, int, int);
41-
PHPAPI void php_closelog();
41+
PHPAPI void php_closelog(void);
4242
END_EXTERN_C()
4343

4444
#endif

0 commit comments

Comments
 (0)