From 233e0f254a119836c4810cceff335d9904a9b5ce Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 9 Oct 2008 15:02:26 +0000 Subject: [PATCH] Fix compile warnings git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1008 42af7a65-404d-4744-a932-0658087f49c3 --- examples/usbserial/main.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/usbserial/main.c b/examples/usbserial/main.c index e901938aa3..11afce34f7 100644 --- a/examples/usbserial/main.c +++ b/examples/usbserial/main.c @@ -38,8 +38,12 @@ ****************************************************************************/ #include + #include +#include #include +#include + #include /**************************************************************************** @@ -114,11 +118,14 @@ int user_start(int argc, char *argv[]) /* ENOTCONN means that the USB device is not yet connected */ - if (errcode = ENOTCONN) +#if 0 /* BUG: May report the wrong error */ + if (errcode == ENOTCONN) +#endif { message("user_start: Not connected. Wait and try again.\n"); sleep(5); } +#if 0 /* BUG: May report the wrong error */ else { /* Give up on other errors */ @@ -126,6 +133,7 @@ int user_start(int argc, char *argv[]) message("user_start: Aborting\n"); return 2; } +#endif } } while (!stream);