diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2018-05-13 07:17:00 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2018-05-13 07:17:00 (GMT) |
commit | 49a9e593112024abc7aa2ae142e50b1d37b39b43 (patch) | |
tree | 8b631d3bfb928a6b1a38aa820c011e4099483b63 /unix | |
parent | 242d4d7095f98f0b2db0cc1461d78080eedfc224 (diff) | |
download | tcl-49a9e593112024abc7aa2ae142e50b1d37b39b43.zip tcl-49a9e593112024abc7aa2ae142e50b1d37b39b43.tar.gz tcl-49a9e593112024abc7aa2ae142e50b1d37b39b43.tar.bz2 |
General code style cleanup.
Diffstat (limited to 'unix')
-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; } |