The code in rtems_init.c looks a little weird. Space is allocated
based on the length of rtems_bsdnet_config.hostname, but then used
with the length of whatever gethostname() returns.
I think that it would be better to:
{
char hostname[1024];
gethostname(hostname, 1023);
char *cp = mustMalloc(strlen(hostname)+3, "iocsh prompt");
sprintf(cp, "%s> ", hostname);
epicsEnvSet ("IOCSH_PS1", cp);
epicsEnvSet("IOC_NAME", hostname);
}
And get rid of the ifdef'd out code, too....
On Sep 19, 2006, at 11:26 AM, Ralph Lange wrote:
Hi Jeff, Eric,
I have commited changes for our RTEMS on ARM board to the 3.14 branch
of the CVS.
These include
* a new Makefile snippet in configure/os
* the change in libCom/osi/os/default/osdNetIntf.c to align the
ifreq buffer
* a change in libCom/osi/os/RTEMS/osdVME.h
* changes in src/RTEMS/base (rtems_init.c and rtems_config.c)
Please have a look and tell me if these changes are acceptable.
I didn't commit the them to the CVS trunk yet - will do as soon as
you approve.
Thanks a lot!
Ralph