]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Fix compiler warning in smount example program from sharedsubtree.txt
authorJesper Juhl <jesper.juhl@gmail.com>
Sat, 20 Oct 2007 00:44:34 +0000 (02:44 +0200)
committerAdrian Bunk <bunk@kernel.org>
Sat, 20 Oct 2007 00:44:34 +0000 (02:44 +0200)
If one compiles the example smount program, found in
Documentation/sharedsubtree.txt, with -Wall then there's a small
compiler warning rearing its ugly head :

 smount.c: In function 'main':
 smount.c:45: warning: implicit declaration of function 'strcmp'

Easily fixed by just including string.h

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Documentation/sharedsubtree.txt

index ccf1cebe744f8b4a6901ff7f61bd23029562344a..736540045dc7b7c9e448fb90bd72fc63346e082d 100644 (file)
@@ -153,6 +153,7 @@ replicas continue to be exactly same.
        #include <stdio.h>
        #include <stdlib.h>
        #include <unistd.h>
+       #include <string.h>
        #include <sys/mount.h>
        #include <sys/fsuid.h>