Skip to contentSkip to conversation

Fix tiny compiler warning in smount example program from Documentation/sharedsubtree.txt

PATCH New Jesper Juhl 1 participant 1 message Aug 27, 2007 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix tiny compiler warning in smount example program from Documentation/sharedsubtree.txt

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

---

 Documentation/sharedsubtree.txt |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Documentation/sharedsubtree.txt +1 -0
index ccf1ceb..7365400 100644
@@ -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>