public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix tiny compiler warning in smount example program from Documentation/sharedsubtree.txt
@ 2007-08-27 23:19 Jesper Juhl
  0 siblings, 0 replies; only message in thread
From: Jesper Juhl @ 2007-08-27 23:19 UTC (permalink / raw)
  To: Miklos Szeredi; +Cc: Ram Pai, Linux Kernel Mailing List, Jesper Juhl


Hi,

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>
---

 Documentation/sharedsubtree.txt |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/Documentation/sharedsubtree.txt b/Documentation/sharedsubtree.txt
index ccf1ceb..7365400 100644
--- a/Documentation/sharedsubtree.txt
+++ b/Documentation/sharedsubtree.txt
@@ -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>
 



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-27 23:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-27 23:19 [PATCH] Fix tiny compiler warning in smount example program from Documentation/sharedsubtree.txt Jesper Juhl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox