21 lines
484 B
Diff
21 lines
484 B
Diff
diff -up lockdev-1.0.3/src/sample.c.gccwarn lockdev-1.0.3/src/sample.c
|
|
--- lockdev-1.0.3/src/sample.c.gccwarn 2009-12-05 15:50:04.000000000 +0100
|
|
+++ lockdev-1.0.3/src/sample.c 2009-12-05 16:49:40.000000000 +0100
|
|
@@ -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';
|