mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Address more Clang warnings (GH-17506)
We prefer clean solutions (such as declaring the proper type in the
first place, or introducing a portable format specifier) where easily
possible, but resort to casts otherwise.
We also port f1480ab14b
.
This commit is contained in:
parent
75bd1a9dc0
commit
aa76127d01
11 changed files with 20 additions and 20 deletions
|
@ -89,7 +89,7 @@ void syslog(int priority, const char *message, ...)
|
|||
|
||||
void vsyslog(int priority, const char *message, va_list args)
|
||||
{
|
||||
LPTSTR strs[2];
|
||||
LPCSTR strs[2];
|
||||
unsigned short etype;
|
||||
char *tmp = NULL;
|
||||
DWORD evid;
|
||||
|
@ -120,7 +120,7 @@ void vsyslog(int priority, const char *message, va_list args)
|
|||
|
||||
/* report the event */
|
||||
if (strsw[0] && strsw[1]) {
|
||||
ReportEventW(PW32G(log_source), etype, (unsigned short) priority, evid, NULL, 2, 0, strsw, NULL);
|
||||
ReportEventW(PW32G(log_source), etype, (unsigned short) priority, evid, NULL, 2, 0, (LPCWSTR *) strsw, NULL);
|
||||
free(strsw[0]);
|
||||
free(strsw[1]);
|
||||
efree(tmp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue