summaryrefslogtreecommitdiff
path: root/libc/misc/internals
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-06-20 14:28:03 +0000
committerEric Andersen <andersen@codepoet.org>2002-06-20 14:28:03 +0000
commit80847c0ebb657e3a56bb59c79ac2ef0edd03413b (patch)
tree18955567a8f8ccd93d3f2449ba0c316f2289b016 /libc/misc/internals
parent58ddcfb0fe24c4de555428399d5a34a7c707c90f (diff)
Cleanup the function pointer comparisions
-Erik
Diffstat (limited to 'libc/misc/internals')
-rw-r--r--libc/misc/internals/__uClibc_main.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c
index fb6a19a43..35a57c6a9 100644
--- a/libc/misc/internals/__uClibc_main.c
+++ b/libc/misc/internals/__uClibc_main.c
@@ -96,28 +96,28 @@ __uClibc_main(int argc, char **argv, char **envp)
* where the standard file descriptors are not opened. We have
* to do this only for statically linked applications since
* otherwise the dynamic loader did the work already. */
- if (unlikely (__libc_enable_secure))
+ if (unlikely (__libc_enable_secure!=NULL))
__libc_check_standard_fds ();
#endif
#ifdef __UCLIBC_HAS_LOCALE__
/* Initialize the global locale structure. */
- if (likely(_locale_init)) _locale_init();
+ if (likely(_locale_init!=NULL)) _locale_init();
#endif
/*
* Initialize stdio here. In the static library case, this will
* be bypassed if not needed because of the weak alias above.
*/
- if (likely(_stdio_init))
+ if (likely(_stdio_init != NULL))
_stdio_init();
/* Arrange for dtors to run at exit. */
- if (_fini && atexit) {
+ if (unlikely(_fini!=NULL && atexit)) {
atexit (&_fini);
}
/* Run all ctors now. */
- if (_init)
+ if (unlikely(_init!=NULL))
_init();
/*
@@ -125,11 +125,11 @@ __uClibc_main(int argc, char **argv, char **envp)
* have resulted in errno being set nonzero, so set it to 0 before
* we call main.
*/
- if (likely(__errno_location))
+ if (likely(__errno_location!=NULL))
*(__errno_location()) = 0;
/* Set h_errno to 0 as well */
- if (likely(__h_errno_location))
+ if (likely(__h_errno_location!=NULL))
*(__h_errno_location()) = 0;
/*