some coverity fixes.
[minix.git] / lib / libc / sys-minix / init.c
blob7b21078cae7acc3f5646b6ecf08341beec90058c
2 #include <stdio.h>
3 #include <minix/ipc.h>
5 struct minix_kerninfo *_minix_kerninfo = NULL;
7 void __minix_init(void) __attribute__((__constructor__, __used__));
9 void __minix_init(void)
11 if((_minix_kernel_info_struct(&_minix_kerninfo)) != 0
12 || _minix_kerninfo->kerninfo_magic != KERNINFO_MAGIC) {
13 _minix_kerninfo = NULL;