[lockdev-devel] [PATCH 06/10] RedHat patch 6

Ludwig Nussel ludwig.nussel at suse.de
Wed Feb 10 11:45:36 UTC 2010


- fix warning
---
 src/sample.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/sample.c b/src/sample.c
index e4ef342..91c4182 100644
--- a/src/sample.c
+++ b/src/sample.c
@@ -1,5 +1,7 @@
 #include <stdio.h>
 #include <stdlib.h>
+#include <sys/types.h>
+#include <unistd.h>
 #include "lockdev.h"
 
 void
@@ -14,7 +16,7 @@ int
 main (int   argc,
       char *argv[])
 {
-	int i, chld;
+	int i;
 	char *p = NULL, *dev = NULL, ch;
 
 	ch = '\0';
-- 
1.6.4.2




More information about the lockdev-devel mailing list