[Skiboot] [PATCH 25/25] sparse: fix libc declarations

Cédric Le Goater clg at fr.ibm.com
Tue Feb 24 22:14:39 AEDT 2015


Signed-off-by: Cédric Le Goater <clg at fr.ibm.com>
---
 libc/include/ctype.h |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/libc/include/ctype.h b/libc/include/ctype.h
index 9051a7563c12..60c98b0593eb 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
-- 
1.7.10.4



More information about the Skiboot mailing list