Remove errno save/restore where not necessary.

This commit is contained in:
Simon Ruderich
2013-06-10 05:24:43 +02:00
parent fe3f7d4c63
commit dfd317650f
5 changed files with 48 additions and 22 deletions

View File

@@ -34,6 +34,7 @@
* Terminate program on failure. */
#define DLSYM_FUNCTION(pointer, name) \
if (NULL == (pointer)) { \
int saved_errnox = errno; \
char *error; \
dlerror(); /* Clear possibly existing error. */ \
\
@@ -44,6 +45,7 @@
* failed to load too. */ \
abort(); \
} \
errno = saved_errnox; \
}
#endif