diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-02-14 22:11:58 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-02-14 22:11:58 +0000 |
commit | 8459644f8e7d157fa1c60288a4d88d9c53b631f2 (patch) | |
tree | f29c7fad27d908f359cb7b20c2e352cc16353a3f /nuttx/lib | |
parent | 957a769705c103fc4d2ddef08ef20e7d8dc8085b (diff) | |
download | px4-nuttx-8459644f8e7d157fa1c60288a4d88d9c53b631f2.tar.gz px4-nuttx-8459644f8e7d157fa1c60288a4d88d9c53b631f2.tar.bz2 px4-nuttx-8459644f8e7d157fa1c60288a4d88d9c53b631f2.zip |
Use MAX_INT, not 0x7fffffff. On some machines int is 16-bits
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1498 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib')
-rw-r--r-- | nuttx/lib/lib_internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/lib/lib_internal.h b/nuttx/lib/lib_internal.h index 37ebd0ffa..0554db07e 100644 --- a/nuttx/lib/lib_internal.h +++ b/nuttx/lib/lib_internal.h @@ -42,6 +42,7 @@ #include <nuttx/config.h> #include <stdio.h> +#include <limits.h> #include <semaphore.h> /**************************************************************************** @@ -58,7 +59,7 @@ # define lib_give_semaphore(s) #endif -#define LIB_BUFLEN_UNKNOWN (0x7fffffff) +#define LIB_BUFLEN_UNKNOWN INT_MAX /**************************************************************************** * Public Types |