Skip to content

Commit

Permalink
Fix compiler warning in smount example program from sharedsubtree.txt
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jesper Juhl authored and Adrian Bunk committed Oct 20, 2007
1 parent f8c34f9 commit 2de206d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Documentation/sharedsubtree.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit 2de206d

Please sign in to comment.