diff options
| author | Derick Rethans <derick@php.net> | 2003-02-09 12:15:05 +0000 |
|---|---|---|
| committer | Derick Rethans <derick@php.net> | 2003-02-09 12:15:05 +0000 |
| commit | f35f5f56c46e557740eea753f20da16a2a348eaa (patch) | |
| tree | f14d6e8eaff013ade80663161441996982abd838 /TSRM | |
| parent | da56457eecd75457dd1652511c19aec1d84249eb (diff) | |
| download | php-git-f35f5f56c46e557740eea753f20da16a2a348eaa.tar.gz | |
- Whitespace fixes
Diffstat (limited to 'TSRM')
| -rw-r--r-- | TSRM/tsrm_win32.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c index dccf86e851..00efb9136e 100644 --- a/TSRM/tsrm_win32.c +++ b/TSRM/tsrm_win32.c @@ -84,11 +84,12 @@ TSRM_API void tsrm_win32_shutdown(void) TSRM_API int tsrm_win32_access(const char *pathname, int mode) { SHFILEINFO sfi; - if (mode == 1 /*X_OK*/) - return access(pathname, 0)==0 && - SHGetFileInfo(pathname,0,&sfi,sizeof(SHFILEINFO),SHGFI_EXETYPE)!=0?0:-1; - else + if (mode == 1 /*X_OK*/) { + return access(pathname, 0) == 0 && + SHGetFileInfo(pathname, 0, &sfi, sizeof(SHFILEINFO), SHGFI_EXETYPE) != 0 ? 0 : -1; + } else { return access(pathname, mode); + } } @@ -370,4 +371,4 @@ TSRM_API int shmctl(int key, int cmd, struct shmid_ds *buf) { return -1; } } -#endif
\ No newline at end of file +#endif |
