summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
Diffstat (limited to 'kern')
-rw-r--r--kern/strings.c4
1 files changed, 2 insertions, 2 deletions
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,