diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-05-13 13:55:11 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-05-13 13:55:11 (GMT) |
| commit | 33610dd48f30836e1647f83d9443681667e69dda (patch) | |
| tree | 53a67af785b26100884b8322dc502b0839ace3fa /unix/tclUnixFCmd.c | |
| parent | 1f7ca2ff69e3ff8252937f385787336054c6fc11 (diff) | |
| parent | 49a9e593112024abc7aa2ae142e50b1d37b39b43 (diff) | |
| download | tcl-33610dd48f30836e1647f83d9443681667e69dda.zip tcl-33610dd48f30836e1647f83d9443681667e69dda.tar.gz tcl-33610dd48f30836e1647f83d9443681667e69dda.tar.bz2 | |
merge 8.7
Diffstat (limited to 'unix/tclUnixFCmd.c')
| -rw-r--r-- | unix/tclUnixFCmd.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/unix/tclUnixFCmd.c b/unix/tclUnixFCmd.c index 8d1de2c..b6b3db2 100644 --- a/unix/tclUnixFCmd.c +++ b/unix/tclUnixFCmd.c @@ -2302,7 +2302,8 @@ winPathFromObj( } static const int attributeArray[] = { - 0x20, 0, 2, 0, 0, 1, 4}; + 0x20, 0, 2, 0, 0, 1, 4 +}; /* *---------------------------------------------------------------------- @@ -2339,8 +2340,8 @@ GetUnixFileAttributes( return TCL_ERROR; } - *attributePtrPtr = Tcl_NewIntObj((fileAttributes&attributeArray[objIndex])!=0); - + *attributePtrPtr = Tcl_NewIntObj( + (fileAttributes & attributeArray[objIndex]) != 0); return TCL_OK; } @@ -2397,7 +2398,7 @@ SetUnixFileAttributes( return TCL_ERROR; } - ckfree(winPath); + ckfree(winPath); return TCL_OK; } #elif defined(HAVE_CHFLAGS) && defined(UF_IMMUTABLE) @@ -2439,8 +2440,7 @@ GetUnixFileAttributes( return TCL_ERROR; } - *attributePtrPtr = Tcl_NewBooleanObj(statBuf.st_flags&UF_IMMUTABLE); - + *attributePtrPtr = Tcl_NewBooleanObj(statBuf.st_flags & UF_IMMUTABLE); return TCL_OK; } |
