Fixed some compiler warnings.
--- 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;
}
/****************************************************************************/