diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-14 20:51:11 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-14 20:51:11 +0000 |
commit | 33d20a1c87eb7cae586cc0d444729eda6c46e723 (patch) | |
tree | 8232edf97066c2d2c3afaf3fea3b51ff51f702cb /nuttx/lib/lib_strtol.c | |
parent | 6260f872623acfe046f62a728405dbadc2a60c8c (diff) | |
download | px4-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_strtol.c')
-rw-r--r-- | nuttx/lib/lib_strtol.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/nuttx/lib/lib_strtol.c b/nuttx/lib/lib_strtol.c index dcd376523..b07bd9973 100644 --- a/nuttx/lib/lib_strtol.c +++ b/nuttx/lib/lib_strtol.c @@ -1,7 +1,7 @@ /**************************************************************************** - * lib_strtol.c + * lib/lib_strtol.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -38,8 +38,10 @@ ****************************************************************************/ #include <nuttx/config.h> -#include <sys/types.h> + +#include <stdbool.h> #include <stdlib.h> + #include "lib_internal.h" /**************************************************************************** @@ -65,7 +67,7 @@ long strtol(const char *nptr, char **endptr, int base) { unsigned long accum = 0; - boolean negate = FALSE; + bool negate = false; if (nptr) { @@ -77,7 +79,7 @@ long strtol(const char *nptr, char **endptr, int base) if (*nptr == '-') { - negate = TRUE; + negate = true; nptr++; } else if (*nptr == '+') |