OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62d3f7b
)
inet: remove noreturn attribute from res_nclose
author
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Wed, 20 Feb 2013 09:09:03 +0000
(10:09 +0100)
committer
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Wed, 20 Feb 2013 14:20:56 +0000
(15:20 +0100)
Partially revert
e9af4dfbd328e9f3bba235fdb2d1027dd2dbbcde
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/inet/resolv.c
patch
|
blob
|
history
diff --git
a/libc/inet/resolv.c
b/libc/inet/resolv.c
index
f1e7da7
..
0a1c0be
100644
(file)
--- a/
libc/inet/resolv.c
+++ b/
libc/inet/resolv.c
@@
-3530,7
+3530,7
@@
__res_vinit(res_state rp, int preinit)
return 0;
}
-static void
attribute_noreturn
+static void
__res_iclose(void)
{
__UCLIBC_MUTEX_LOCK(__resolv_lock);
@@
-3549,9
+3549,7
@@
__res_iclose(void)
}
#endif
memset(&_res, 0, sizeof(_res));
- /* the loop is only to make gcc happy */
- while(1)
- __UCLIBC_MUTEX_UNLOCK(__resolv_lock);
+ __UCLIBC_MUTEX_UNLOCK(__resolv_lock);
}
/*