From ac0a72f82db63681fb957ca1d0f616ef7fc6b3bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Date: Tue, 24 Feb 2015 12:14:39 +0100 Subject: sparse: fix libc declarations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cédric Le Goater Signed-off-by: Stewart Smith --- libc/include/ctype.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'libc') 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 -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 -- cgit v1.1