From fdb0f3b35d972e675177f89a03a3913f2ef1b656 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 15 Nov 2010 02:25:06 +0000 Subject: [PATCH] Fix compile errors with debug on git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3111 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/src/lpc17xx/lpc17_ethernet.c | 6 +++--- configs/olimex-lpc1766stk/nettest/defconfig | 2 +- lib/lib_fopen.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/src/lpc17xx/lpc17_ethernet.c b/arch/arm/src/lpc17xx/lpc17_ethernet.c index 5e3ba537e4..dd37c560fb 100644 --- a/arch/arm/src/lpc17xx/lpc17_ethernet.c +++ b/arch/arm/src/lpc17xx/lpc17_ethernet.c @@ -1970,8 +1970,8 @@ static inline int lpc17_phyinit(struct lpc17_driver_s *priv) #endif ndbg("%dBase-T %s duplex\n", - priv->lp_mode & LPC17_SPEED_MASK == LPC17_SPEED_100 ? 100 : 10, - priv->lp_mode & LPC17_DUPLEX_MASK == LPC17_DUPLEX_FULL ?"full" : "half"); + (priv->lp_mode & LPC17_SPEED_MASK) == LPC17_SPEED_100 ? 100 : 10, + (priv->lp_mode & LPC17_DUPLEX_MASK) == LPC17_DUPLEX_FULL ?"full" : "half"); /* Disable auto-configuration. Set the fixed speed/duplex mode. * (probably more than little redundant). @@ -2281,7 +2281,7 @@ static inline int lpc17_ethinitialize(int intf) int ret; int i; - DEBUGASSERT(inf < LPC17_NETHCONTROLLERS); + DEBUGASSERT(intf < LPC17_NETHCONTROLLERS); priv = &g_ethdrvr[intf]; /* Turn on the ethernet MAC clock */ diff --git a/configs/olimex-lpc1766stk/nettest/defconfig b/configs/olimex-lpc1766stk/nettest/defconfig index d546f7c0d3..25322b279f 100755 --- a/configs/olimex-lpc1766stk/nettest/defconfig +++ b/configs/olimex-lpc1766stk/nettest/defconfig @@ -204,7 +204,7 @@ CONFIG_PHY_KS8721=y CONFIG_PHY_AUTONEG=y CONFIG_PHY_SPEED100=n CONFIG_PHY_FDUPLEX=y - +CONFIG_NET_REGDEBUG=n # # General build options # diff --git a/lib/lib_fopen.c b/lib/lib_fopen.c index 0bfb275b84..6502f0ee46 100644 --- a/lib/lib_fopen.c +++ b/lib/lib_fopen.c @@ -137,7 +137,7 @@ FAR struct file_struct *lib_fdopen(int fd, FAR const char *mode, FAR struct filelist *flist, FAR struct streamlist *slist) { - FAR struct inode *inode = flist; + FAR struct inode *inode; FAR FILE *stream; int oflags = lib_mode2oflags(mode); int err = OK;