aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2017-07-06 04:25:39 +0200
committerAlexey Kardashevskiy <aik@ozlabs.ru>2017-07-07 16:40:47 +1000
commitbc0dc192899f4462986220172a78a8cf59d22fcc (patch)
tree3b36557bafcf9aff78d6983034cc4966e630a2e5 /lib
parent5d34a1b6c57d5f029e7df1b0d972e7801d315344 (diff)
downloadSLOF-bc0dc192899f4462986220172a78a8cf59d22fcc.zip
SLOF-bc0dc192899f4462986220172a78a8cf59d22fcc.tar.gz
SLOF-bc0dc192899f4462986220172a78a8cf59d22fcc.tar.bz2
libc: Declare size_t as unsigned long
If size_t is only "int", memset() and friends are limited to 4 GB. And ssize_t is already declared as "long", so it is somewhat inconsequent to define size_t as "int" only. Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/include/stddef.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/include/stddef.h b/lib/libc/include/stddef.h
index ba2d960..e240106 100644
--- a/lib/libc/include/stddef.h
+++ b/lib/libc/include/stddef.h
@@ -16,8 +16,7 @@
#define NULL ((void *)0)
-
-typedef unsigned int size_t;
+typedef unsigned long size_t;
#endif