aboutsummaryrefslogtreecommitdiff
path: root/assert/assert.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-02-16 07:58:29 +0000
committerUlrich Drepper <drepper@redhat.com>2007-02-16 07:58:29 +0000
commitb3715c05d7834a6e755c293d3d9274bd0b71d4df (patch)
tree1102dea90e2b036a6a491b70246c3ad86cd1ddc8 /assert/assert.h
parent6eea8e0d4838c05e0be24620baa05f00a014fffa (diff)
downloadglibc-b3715c05d7834a6e755c293d3d9274bd0b71d4df.tar
glibc-b3715c05d7834a6e755c293d3d9274bd0b71d4df.tar.gz
glibc-b3715c05d7834a6e755c293d3d9274bd0b71d4df.tar.bz2
glibc-b3715c05d7834a6e755c293d3d9274bd0b71d4df.zip
[BZ #3991]
* assert/assert.h (assert): Simplify. (assert_perror): Likewise. Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
Diffstat (limited to 'assert/assert.h')
-rw-r--r--assert/assert.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/assert/assert.h b/assert/assert.h
index 7c8ae4845d..841f435973 100644
--- a/assert/assert.h
+++ b/assert/assert.h
@@ -1,4 +1,5 @@
-/* Copyright (C) 1991,1992,1994-2001,2003,2004 Free Software Foundation, Inc.
+/* Copyright (C) 1991,1992,1994-2001,2003,2004,2007
+ Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -87,15 +88,13 @@ __END_DECLS
# define assert(expr) \
((expr) \
? __ASSERT_VOID_CAST (0) \
- : (__assert_fail (__STRING(expr), __FILE__, __LINE__, __ASSERT_FUNCTION), \
- __ASSERT_VOID_CAST (0)))
+ : __assert_fail (__STRING(expr), __FILE__, __LINE__, __ASSERT_FUNCTION))
# ifdef __USE_GNU
# define assert_perror(errnum) \
(!(errnum) \
? __ASSERT_VOID_CAST (0) \
- : (__assert_perror_fail ((errnum), __FILE__, __LINE__, __ASSERT_FUNCTION), \
- __ASSERT_VOID_CAST (0)))
+ : __assert_perror_fail ((errnum), __FILE__, __LINE__, __ASSERT_FUNCTION))
# endif
/* Version 2.4 and later of GCC define a magical variable `__PRETTY_FUNCTION__'