Fixed some compiler warnings. stable-1.5
authorFlorian Pose <fp@igh-essen.com>
Wed, 19 Sep 2012 22:33:13 +0200
branchstable-1.5
changeset 2427 17ada1c77acc
parent 2426 58572b4208ba
child 2428 8a270ea612ee
Fixed some compiler warnings.
lib/master.c
--- a/lib/master.c	Wed Sep 19 22:30:26 2012 +0200
+++ b/lib/master.c	Wed Sep 19 22:33:13 2012 +0200
@@ -28,6 +28,7 @@
  *
  ****************************************************************************/
 
+#include <unistd.h> /* close() */
 #include <stdlib.h>
 #include <sys/ioctl.h>
 #include <stdio.h>
@@ -159,7 +160,6 @@
 {
     ec_ioctl_config_t data;
     ec_slave_config_t *sc;
-    int index;
 
     sc = malloc(sizeof(ec_slave_config_t));
     if (!sc) {
@@ -216,7 +216,7 @@
         ec_slave_info_t *slave_info)
 {
     ec_ioctl_slave_t data;
-    int index, i;
+    int i;
 
     data.position = slave_position;
 
@@ -569,6 +569,8 @@
         fprintf(stderr, "Failed to get link state: %s\n", strerror(errno));
         return -errno;
     }
+
+    return 0;
 }
 
 /****************************************************************************/