diff options
author | Cédric Le Goater <clg@fr.ibm.com> | 2015-02-24 12:14:39 +0100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-02-26 18:33:07 +1100 |
commit | ac0a72f82db63681fb957ca1d0f616ef7fc6b3bb (patch) | |
tree | f7952fa35bfc6c70017b106d7017529b16606ad3 /libc | |
parent | bc7bb3d12bc1f518964562c821edaa8b9984f964 (diff) | |
download | skiboot-ac0a72f82db63681fb957ca1d0f616ef7fc6b3bb.zip skiboot-ac0a72f82db63681fb957ca1d0f616ef7fc6b3bb.tar.gz skiboot-ac0a72f82db63681fb957ca1d0f616ef7fc6b3bb.tar.bz2 |
sparse: fix libc declarations
Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libc')
-rw-r--r-- | libc/include/ctype.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/libc/include/ctype.h b/libc/include/ctype.h index 9051a75..60c98b0 100644 --- a/libc/include/ctype.h +++ b/libc/include/ctype.h @@ -13,12 +13,14 @@ #ifndef _CTYPE_H #define _CTYPE_H -int isdigit(int c); -int isxdigit(int c); -int isprint(int c); -int isspace(int c); +#include <compiler.h> -int tolower(int c); -int toupper(int c); +int __attrconst isdigit(int c); +int __attrconst isxdigit(int c); +int __attrconst isprint(int c); +int __attrconst isspace(int c); + +int __attrconst tolower(int c); +int __attrconst toupper(int c); #endif |