diff -r 69056c46aa4d -r bc2d4bf9cbe5 lib/slave_config.c --- a/lib/slave_config.c Thu Sep 06 19:52:17 2012 +0200 +++ b/lib/slave_config.c Thu Sep 06 20:22:24 2012 +0200 @@ -1,11 +1,11 @@ /****************************************************************************** - * + * * $Id$ - * + * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH - * + * * This file is part of the IgH EtherCAT master userspace library. - * + * * The IgH EtherCAT master userspace library is free software; you can * redistribute it and/or modify it under the terms of the GNU Lesser General * Public License as published by the Free Software Foundation; version 2.1 @@ -19,9 +19,9 @@ * You should have received a copy of the GNU Lesser General Public License * along with the IgH EtherCAT master userspace library. If not, see * . - * + * * --- - * + * * The license mentioned above concerns the source code only. Using the * EtherCAT technology and brand is only permitted in compliance with the * industrial property and similar rights of Beckhoff Automation GmbH. @@ -86,7 +86,7 @@ strerror(errno)); return -1; // FIXME } - + return 0; } @@ -124,7 +124,7 @@ strerror(errno)); return -1; // FIXME } - + return 0; } @@ -163,7 +163,7 @@ strerror(errno)); return -1; // FIXME } - + return 0; } @@ -428,13 +428,13 @@ data.sdo_index = index; data.sdo_subindex = subindex; data.size = size; - + if (ioctl(sc->master->fd, EC_IOCTL_SC_SDO_REQUEST, &data) == -1) { fprintf(stderr, "Failed to create SDO request: %s\n", strerror(errno)); ec_sdo_request_clear(req); free(req); - return NULL; + return NULL; } req->next = NULL; @@ -495,13 +495,13 @@ data.config_index = sc->index; data.size = size; - + if (ioctl(sc->master->fd, EC_IOCTL_SC_VOE, &data) == -1) { fprintf(stderr, "Failed to create VoE handler: %s\n", strerror(errno)); ec_voe_handler_clear(voe); free(voe); - return NULL; + return NULL; } voe->next = NULL; @@ -524,7 +524,7 @@ data.config_index = sc->index; data.state = state; - + if (ioctl(sc->master->fd, EC_IOCTL_SC_STATE, &data) == -1) { fprintf(stderr, "Failed to get slave configuration state: %s\n", strerror(errno));