File kbdsniffd-fixes.patch of Package kbdsniffd

--- a/uinput.h
+++ b/uinput.h
@@ -1,5 +1,5 @@
 #ifndef _UINPUT_H
-#define _UINPT_H
+#define _UINPUT_H
 
 #include <linux/uinput.h>
 
--- a/ringbuffer.h
+++ b/ringbuffer.h
@@ -1,5 +1,5 @@
 #ifndef _RINGBUFFER_H
-#define _RINGBUFER_H
+#define _RINGBUFFER_H
 
 #define RINGBUFFER_SIZE 256
--- a/kbdsniffd.c
+++ b/kbdsniffd.c
@@ -130,7 +130,7 @@
   int port = 0;
   int c;
   int daemonize = 0;
-  struct hostent *hp = NULL, *gethostbyname ();
+  struct hostent *hp = NULL;
 
   progname = argv[0];
 
@@ -300,7 +300,7 @@
       exit (1);
     }
 
-    if ((hp = gethostbyname ("localhost")) == NULL)
+    if ((hp = gethostbyname ("localhost")) == NULL)
       {
         perror ("gethostbyname");
         exit (1);
openSUSE Build Service is sponsored by