mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-13 15:07:10 +03:00
Use int instead of mode_t to appease Windows.
This commit is contained in:
@@ -418,7 +418,7 @@ char *current_filetime(apr_pool_t *mp) {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
int msc_mkstemp_ex(char *template, mode_t mode) {
|
||||
int msc_mkstemp_ex(char *template, int mode) {
|
||||
/* ENH Use apr_file_mktemp instead. */
|
||||
|
||||
#if !(defined(WIN32)||defined(NETWARE))
|
||||
@@ -1362,7 +1362,7 @@ int css_decode_inplace(unsigned char *input, long int input_len) {
|
||||
/**
|
||||
* Translate UNIX octal umask/mode to APR apr_fileperms_t
|
||||
*/
|
||||
apr_fileperms_t mode2fileperms(mode_t mode) {
|
||||
apr_fileperms_t mode2fileperms(int mode) {
|
||||
apr_fileperms_t perms = 0;
|
||||
|
||||
if (mode & S_IXOTH) perms |= APR_WEXECUTE;
|
||||
|
||||
@@ -56,7 +56,7 @@ char DSOLOCAL *current_logtime(apr_pool_t *mp);
|
||||
|
||||
char DSOLOCAL *current_filetime(apr_pool_t *mp);
|
||||
|
||||
int DSOLOCAL msc_mkstemp_ex(char *template, mode_t mode);
|
||||
int DSOLOCAL msc_mkstemp_ex(char *template, int mode);
|
||||
|
||||
int DSOLOCAL msc_mkstemp(char *template);
|
||||
|
||||
@@ -99,6 +99,6 @@ char DSOLOCAL *resolve_relative_path(apr_pool_t *pool, const char *parent_filena
|
||||
|
||||
int DSOLOCAL css_decode_inplace(unsigned char *input, long int input_len);
|
||||
|
||||
apr_fileperms_t DSOLOCAL mode2fileperms(mode_t mode);
|
||||
apr_fileperms_t DSOLOCAL mode2fileperms(int mode);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user