lockdev/lockdev-1.0.1-gccwarn.patch
kzak ef050c9098 - refresh patches (due --fuzz=0)
- fix compiler warnings
2008-10-06 09:37:43 +00:00

22 lines
482 B
Diff

diff -up lockdev-1.0.1/src/sample.c.kzak lockdev-1.0.1/src/sample.c
--- lockdev-1.0.1/src/sample.c.kzak 2008-10-06 11:29:48.000000000 +0200
+++ lockdev-1.0.1/src/sample.c 2008-10-06 11:30:26.000000000 +0200
@@ -1,4 +1,8 @@
#include <stdio.h>
+#include <stdlib.h>
+#include <sys/types.h>
+#include <unistd.h>
+
#include "lockdev.h"
void
@@ -13,7 +17,7 @@ int debug;
int
main(int argc, char *argv[])
{
- int i, chld;
+ int i;
char *p = NULL, *dev = NULL, ch;
ch = '\0';