Most errors found with:
codespell -L cach,thst,odly,aslo,parm,parms,inpu,ges,prset,pevent,ptd,pring,valu,noo,noe,ned,inout,ro,siz,froms,nd,fo,singl,sart,multy,tthe,allong,ment,inate,nodel,tring,alse,ture,thi,wille,numer
Some more manually found (its -> it's)
c++20: Do not use apostrophe (e.g. can't) in unquoted #error message
This replaces an implementation that used a header guard being defined
to indicate BSP specific options. Hopefully this method is more
explicit when config options should be set for specific BSPs.
This looks like a merge issue, where we included ne2kpci possibly
twice, based on CPU being i386 and BSP being pc686. Just
checking CPU as i386 should be sufficient for all cases.
rtems_init.c will write out a dhcpcd.conf if one doesn't already
exist, but if there's a filesystem including this file, don't write
over it, use whatever's there instead.
Use strtok_r rather than strtok
Use strlen() rather than harcoded string size. GCC should optimize
this to the hardcoded string size, so the result should be the same
but maybe prevents future mistakes.
replace strncpy() with snprintf() to avoid issues with NULL terminated
strings.
In the future, it would be nice to add an ioc shell command to launch
into an RTEMS shell, but for now, it can be helpful when debugging to
enable this section for poking around in an RTEMS shell check network
configuration and stuff like that.
RTEMS dhcp will wait indefinitely for a response.
rtems_init.c will wait on DHCP for 10 minutes, before timing out and
starting main(). Note that rtems should still be waiting in the
background and a dhcp connection could still come up after this timeout.
Use strtok_r rather than strtok
Use strlen() rather than harcoded string size. GCC should optimize
this to the hardcoded string size, so the result should be the same
but maybe prevents future mistakes.
replace strncpy() with snprintf() to avoid issues with NULL terminated
strings.