Again fixed some compiler warnings. stable-1.5
authorFlorian Pose <fp@igh-essen.com>
Wed, 19 Sep 2012 22:40:32 +0200
branchstable-1.5
changeset 2428 8a270ea612ee
parent 2427 17ada1c77acc
child 2429 cc2e1cbb63b1
Again fixed some compiler warnings.
lib/sdo_request.c
lib/slave_config.c
--- a/lib/sdo_request.c	Wed Sep 19 22:33:13 2012 +0200
+++ b/lib/sdo_request.c	Wed Sep 19 22:40:32 2012 +0200
@@ -37,6 +37,7 @@
 #include <stdio.h>
 #include <errno.h>
 #include <string.h>
+#include <sys/ioctl.h>
 
 #include "sdo_request.h"
 #include "master/ioctl.h"
--- a/lib/slave_config.c	Wed Sep 19 22:33:13 2012 +0200
+++ b/lib/slave_config.c	Wed Sep 19 22:40:32 2012 +0200
@@ -70,7 +70,6 @@
         ec_direction_t dir, ec_watchdog_mode_t watchdog_mode)
 {
     ec_ioctl_config_t data;
-    unsigned int i;
 
     if (sync_index >= EC_MAX_SYNC_MANAGERS)
         return -ENOENT;
@@ -473,7 +472,6 @@
 {
     ec_ioctl_voe_t data;
     ec_voe_handler_t *voe;
-    unsigned int index;
 
     voe = malloc(sizeof(ec_voe_handler_t));
     if (!voe) {