summaryrefslogtreecommitdiff
path: root/nuttx/lib/lib_daysbeforemonth.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-14 20:51:11 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-14 20:51:11 +0000
commit33d20a1c87eb7cae586cc0d444729eda6c46e723 (patch)
tree8232edf97066c2d2c3afaf3fea3b51ff51f702cb /nuttx/lib/lib_daysbeforemonth.c
parent6260f872623acfe046f62a728405dbadc2a60c8c (diff)
downloadpx4-nuttx-33d20a1c87eb7cae586cc0d444729eda6c46e723.tar.gz
px4-nuttx-33d20a1c87eb7cae586cc0d444729eda6c46e723.tar.bz2
px4-nuttx-33d20a1c87eb7cae586cc0d444729eda6c46e723.zip
Switching to C99 stdint.h types
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2338 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/lib_daysbeforemonth.c')
-rw-r--r--nuttx/lib/lib_daysbeforemonth.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/nuttx/lib/lib_daysbeforemonth.c b/nuttx/lib/lib_daysbeforemonth.c
index 718668bd1..0dbe4aeee 100644
--- a/nuttx/lib/lib_daysbeforemonth.c
+++ b/nuttx/lib/lib_daysbeforemonth.c
@@ -38,11 +38,14 @@
****************************************************************************/
#include <nuttx/config.h>
-#include <sys/types.h>
+
+#include <stdint.h>
+#include <stdbool.h>
+
#include <nuttx/time.h>
/****************************************************************************
- * Definitions
+ * Pre-processor Definitions
****************************************************************************/
/****************************************************************************
@@ -61,7 +64,7 @@
* Public Variables
****************************************************************************/
-uint16 g_daysbeforemonth[13] =
+uint16_t g_daysbeforemonth[13] =
{
0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365
};
@@ -86,7 +89,7 @@ uint16 g_daysbeforemonth[13] =
*
****************************************************************************/
-int clock_daysbeforemonth(int month, boolean leapyear)
+int clock_daysbeforemonth(int month, bool leapyear)
{
int retval = g_daysbeforemonth[month];
if (month >= 2 && leapyear)