lockdev/lockdev-1.0.3-gccwarn.patch
Jiří Popelka 649b6dcfed - 1.0.3. No longer need 1.0.0-signal, 1.0.1-subdir, 1.0.1-fcntl,
1.0.1-32bit patches.
- Renumbered patches and sources.
2009-12-07 09:28:58 +00:00

21 lines
484 B
Diff
Executable File

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