Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2005-05-04 15:05:11 +0400
committerCorinna Vinschen <corinna@vinschen.de>2005-05-04 15:05:11 +0400
commit56f235345d7c01385dca7601cdeb7c9e1cbec544 (patch)
tree9f24fa435ed205af8146b39c14c038fe9801d82c /winsup
parent5d4750a99625a94f2e899824957b7d71406aa57b (diff)
* cygerrno.h (__set_errno): Remove useless parentheses.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/cygerrno.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 7d1b9942d..a8383c564 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2005-05-04 Corinna Vinschen <corinna@vinschen.de>
+ * cygerrno.h (__set_errno): Remove useless parentheses.
+
+2005-05-04 Corinna Vinschen <corinna@vinschen.de>
+
* cygerrno.h (__set_errno): Define as inline function here.
(set_errno): Always define as call to __set_errno.
* debug.cc (__set_errno): Move to cygerrno.h.
diff --git a/winsup/cygwin/cygerrno.h b/winsup/cygwin/cygerrno.h
index 1c0ef70fe..f1ecf35fd 100644
--- a/winsup/cygwin/cygerrno.h
+++ b/winsup/cygwin/cygerrno.h
@@ -27,7 +27,7 @@ inline int
__set_errno (const char *fn, int ln, int val)
{
debug_printf ("%s:%d val %d", fn, ln, val);
- return errno = _impure_ptr->_errno = (val);
+ return errno = _impure_ptr->_errno = val;
}
#define set_errno(val) __set_errno (__PRETTY_FUNCTION__, __LINE__, (val))