summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-01-04 18:29:03 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-01-04 18:29:03 +0000
commitb72e368c350737f8cafa21380744ce4e324e651a (patch)
treea376f63155896c6adf87be29f2f847817133bee0 /cpukit
parente180a77eddb4a2e4e7fdaf00dae66234d4d309d6 (diff)
downloadrtems-b72e368c350737f8cafa21380744ce4e324e651a.tar.bz2
2002-01-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/rtems/seterr.h: Add do {..} while (0) in defines. Rename set_errno_and_return_minus_one into rtems_set_errno_and_return_minus_one.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/score/ChangeLog6
-rw-r--r--cpukit/score/include/rtems/seterr.h8
2 files changed, 10 insertions, 4 deletions
diff --git a/cpukit/score/ChangeLog b/cpukit/score/ChangeLog
index e9080fa295..4ac3cbfac2 100644
--- a/cpukit/score/ChangeLog
+++ b/cpukit/score/ChangeLog
@@ -1,3 +1,9 @@
+2002-01-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
+ * include/rtems/seterr.h: Add do {..} while (0) in defines.
+ Rename set_errno_and_return_minus_one into
+ rtems_set_errno_and_return_minus_one.
+
2001-12-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* inline/rtems/score/object.inl, macros/rtems/score/object.inl: Add
diff --git a/cpukit/score/include/rtems/seterr.h b/cpukit/score/include/rtems/seterr.h
index ea951ac8b2..64bf4eb17f 100644
--- a/cpukit/score/include/rtems/seterr.h
+++ b/cpukit/score/include/rtems/seterr.h
@@ -12,11 +12,11 @@
#ifndef __RTEMS_SET_ERRNO_h
#define __RTEMS_SET_ERRNO_h
-#define set_errno_and_return_minus_one( _error ) \
- { errno = (_error); return -1; }
+#define rtems_set_errno_and_return_minus_one( _error ) \
+ do { errno = (_error); return -1; } while(0)
-#define set_errno_and_return_minus_one_cast( _error, _cast ) \
- { errno = (_error); return (_cast) -1; }
+#define rtems_set_errno_and_return_minus_one_cast( _error, _cast ) \
+ do { errno = (_error); return (_cast) -1; } while(0)
#endif
/* end of include file */