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
This commit is contained in:
parent
7127caf67d
commit
6a31e650e8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user