Fix Linux sim errors/warning

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@842 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2008-08-29 15:36:02 +00:00
parent 5f27feded2
commit 57792182f7
4 changed files with 15 additions and 5 deletions

View File

@ -94,8 +94,11 @@ libarch$(LIBEXT): $(NXOBJS)
# A partially linked object containing only NuttX code (no interface to host OS)
# Change the names of most symbols that conflict with libc symbols.
Linux-names.dat: nuttx-names.dat
@cp $^ $@
GNU:
@mkdir ./GNU
GNU/Linux-names.dat: GNU nuttx-names.dat
@cp nuttx-names.dat $@
Cygwin-names.dat: nuttx-names.dat
@cat $^ | sed -e "s/^/_/g" >$@

View File

@ -83,5 +83,5 @@
void up_registerblockdevice(void)
{
rd_register(0, up_deviceimage(), NSECTORS, LOGICAL_SECTOR_SIZE, TRUE);
rd_register(0, (ubyte*)up_deviceimage(), NSECTORS, LOGICAL_SECTOR_SIZE, TRUE);
}

View File

@ -81,6 +81,15 @@
void up_initialize(void)
{
/* The real purpose of the following is to make sure that lib_rawprintf
* is drawn into the link. It is needed by up_tapdev which is linked
* separately.
*/
#ifdef CONFIG_NET
lib_rawprintf("SIM: Initializing");
#endif
/* Register devices */
devnull_register(); /* Standard /dev/null */

View File

@ -138,8 +138,6 @@ static int sim_uiptxpoll(struct uip_driver_s *dev)
void uipdriver_loop(void)
{
int i;
/* tapdev_read will return 0 on a timeout event and >0 on a data received event */
g_sim_dev.d_len = tapdev_read((unsigned char*)g_sim_dev.d_buf, CONFIG_NET_BUFSIZE);