From be1ce42e936c96776b661ba5a93b0c9d0d76bb31 Mon Sep 17 00:00:00 2001 From: Marin Ramesa Date: Fri, 20 Dec 2013 13:29:00 +0100 Subject: Mark pure functions with attribute pure --- kern/strings.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kern') diff --git a/kern/strings.c b/kern/strings.c index 72eb4f3..c77ae4f 100644 --- a/kern/strings.c +++ b/kern/strings.c @@ -53,7 +53,7 @@ * contents are identical upto the length of s1. */ -int +int __attribute__ ((pure)) strcmp( const char *s1, const char *s2) @@ -80,7 +80,7 @@ strcmp( * comparison runs for at most "n" characters. */ -int +int __attribute__ ((pure)) strncmp( const char *s1, const char *s2, -- cgit v1.2.3