rtems_init cleanup
Remove unnecessary (as of RTEMS 4.9) prototypes Remove unused *Fatal constify string contant
This commit is contained in:
@@ -52,8 +52,6 @@
|
||||
/*
|
||||
* Prototypes for some functions not in header files
|
||||
*/
|
||||
void tzset(void);
|
||||
int fileno(FILE *);
|
||||
int main(int argc, char **argv);
|
||||
|
||||
static void
|
||||
@@ -103,26 +101,6 @@ LogFatal (const char *msg, ...)
|
||||
delayedPanic (msg);
|
||||
}
|
||||
|
||||
/*
|
||||
* Log RTEMS error and terminate
|
||||
*/
|
||||
void
|
||||
LogRtemsFatal (const char *msg, rtems_status_code sc)
|
||||
{
|
||||
errlogPrintf ("%s: %s\n", msg, rtems_status_text (sc));
|
||||
delayedPanic (msg);
|
||||
}
|
||||
|
||||
/*
|
||||
* Log network error and terminate
|
||||
*/
|
||||
void
|
||||
LogNetFatal (const char *msg, int err)
|
||||
{
|
||||
errlogPrintf ("%s: %d\n", msg, err);
|
||||
delayedPanic (msg);
|
||||
}
|
||||
|
||||
void *
|
||||
mustMalloc(int size, const char *msg)
|
||||
{
|
||||
@@ -370,7 +348,7 @@ initialize_remote_filesystem(char **argv, int hasLocalFilesystem)
|
||||
}
|
||||
|
||||
static
|
||||
char rtems_etc_hosts[] = "127.0.0.1 localhost\n";
|
||||
const char rtems_etc_hosts[] = "127.0.0.1 localhost\n";
|
||||
|
||||
/* If it doesn't already exist, create /etc/hosts with an entry for 'localhost' */
|
||||
static
|
||||
|
||||
Reference in New Issue
Block a user