summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNatanael Copa <natanael.copa@gmail.com>2010-11-26 14:49:56 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-12-01 23:45:23 +0100
commit78009d25addb8487702f902ed4ad581a5004bfe9 (patch)
tree46bcf4925b8d759b4ef54608c6a16c95d60f3651 /include
parentc5db8f051be9846485911e973f26943c114c66fb (diff)
libc: fix strtoq
strtoq should always return a quad_t and be an alias of strtol on 64 bit and strtoll on 32 bit. Signed-off-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/stdlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index ce92ccd28..300edf04a 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -214,7 +214,7 @@ __END_NAMESPACE_STD
/* Convert a string to a quadword integer. */
__extension__
-extern long long int strtoq (__const char *__restrict __nptr,
+extern quad_t strtoq (__const char *__restrict __nptr,
char **__restrict __endptr, int __base)
__THROW __nonnull ((1)) __wur;
/* Convert a string to an unsigned quadword integer. */