lib: fixes for warnings that clang has for libraries.

This commit is contained in:
Ben Gras
2010-07-06 12:08:22 +00:00
parent f6f814cb02
commit 68db8ed0b9
36 changed files with 65 additions and 45 deletions

View File

@@ -18,12 +18,8 @@ PUBLIC void panic(const char *fmt, ...)
endpoint_t me = NONE;
char name[20];
void (*suicide)(void);
static int panicing= 0;
va_list args;
if(panicing) return;
panicing= 1;
if(sys_whoami(&me, name, sizeof(name)) == OK && me != NONE)
printf("%s(%d): panic: ", name, me);
else

View File

@@ -166,6 +166,7 @@ PUBLIC void _exit(int status)
{
/* Make exit() an alias for sef_exit() for system services. */
sef_exit(status);
panic("sef_exit failed");
}
/*===========================================================================*
@@ -175,6 +176,7 @@ PUBLIC void __exit(int status)
{
/* Make exit() an alias for sef_exit() for system services. */
sef_exit(status);
panic("sef_exit failed");
}
/*===========================================================================*