summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-09-08 22:41:00 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-09-08 22:41:00 +0000
commit712b9f5349a81fe56fa060ccb8aa13e0db830657 (patch)
treedfbb89ff177cb40a24945fa3925c9e75230a6a5b /nuttx/include
parent255e1fe83691a2c5a3328bcec13e2bce0a140696 (diff)
downloadpx4-nuttx-712b9f5349a81fe56fa060ccb8aa13e0db830657.tar.gz
px4-nuttx-712b9f5349a81fe56fa060ccb8aa13e0db830657.tar.bz2
px4-nuttx-712b9f5349a81fe56fa060ccb8aa13e0db830657.zip
Cleanup and fix problems introduce in last commit
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@337 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/os_external.h4
-rw-r--r--nuttx/include/sys/socket.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/include/nuttx/os_external.h b/nuttx/include/nuttx/os_external.h
index d144fb9c6..410cdd622 100644
--- a/nuttx/include/nuttx/os_external.h
+++ b/nuttx/include/nuttx/os_external.h
@@ -87,8 +87,8 @@
#define NSEC2TICK(nsec) (((nsec)+(NSEC_PER_TICK/2))/NSEC_PER_TICK) /* Rounds */
#define USEC2TICK(usec) (((usec)+(USEC_PER_TICK/2))/USEC_PER_TICK) /* Rounds */
#define MSEC2TICK(msec) (((msec)+(MSEC_PER_TICK/2))/MSEC_PER_TICK) /* Rounds */
-#define DSEC2TICK(dsec) MSEC2TICK((dsec)*DSEC_PER_MSEC)
-#define SEC2TICK(sec) MSEC2TICK((sec)*SEC_PER_MSEC)
+#define DSEC2TICK(dsec) MSEC2TICK((dsec)*MSEC_PER_DSEC)
+#define SEC2TICK(sec) MSEC2TICK((sec)*MSEC_PER_SEC)
/****************************************************************************
* Global Data
diff --git a/nuttx/include/sys/socket.h b/nuttx/include/sys/socket.h
index 15afd9662..52c20e272 100644
--- a/nuttx/include/sys/socket.h
+++ b/nuttx/include/sys/socket.h
@@ -135,7 +135,7 @@
#define SO_SNDBUF 7 /* Sets send buffer size. arg: integer value (get/set). */
#define SO_RCVBUF 8 /* Sets receive buffer size. arg: integer value (get/set). */
#define SO_ERROR 9 /* Reports and clears error status (get only). arg: returns
- * an integer value
+ * an integer value */
#define SO_TYPE 10 /* Reports the socket type (get only). return: int */
#define SO_DONTROUTE 11 /* Requests that outgoing messages bypass standard routing (get/set)
* arg: pointer to integer containing a boolean value */