From de01183aa40dbbd274e18f681d8a255a886f493e Mon Sep 17 00:00:00 2001 From: sr Date: Mon, 27 Aug 2012 21:02:49 +0200 Subject: [KERNEL] Refactor and extend sysfs (add data the server will need in proxy mode) [SERVER] Use MSG_MORE instead of cork/uncork to save two syscalls [KERNEL] Fail-Counter for alt servers, ignore servers that fail too often [KERNEL] Add new alt servers to list, instead of replacing the old list [*] Add CMD_LATEST_RID to tell client about new revisions --- src/client/client.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/client/client.c') diff --git a/src/client/client.c b/src/client/client.c index 57762cc..93aaeb7 100644 --- a/src/client/client.c +++ b/src/client/client.c @@ -170,7 +170,7 @@ int main(int argc, char *argv[]) const int ret = ioctl(fd, IOCTL_CLOSE, &msg); if (ret < 0) { - printf("ERROR: ioctl not successful (close, %s (%d))\n", strerror(ret), ret); + printf("ERROR: ioctl not successful (close, %s (%d))\n", strerror(-ret), ret); exit(EXIT_FAILURE); } @@ -187,7 +187,7 @@ int main(int argc, char *argv[]) const int ret = ioctl(fd, IOCTL_SWITCH, &msg); if (ret < 0) { - printf("ERROR: ioctl not successful (switch, %s (%d))\n", strerror(ret), ret); + printf("ERROR: ioctl not successful (switch, %s (%d))\n", strerror(-ret), ret); exit(EXIT_FAILURE); } @@ -205,7 +205,7 @@ int main(int argc, char *argv[]) const int ret = ioctl(fd, IOCTL_OPEN, &msg); if (ret < 0) { - printf("ERROR: ioctl not successful (connect, %s (%d))\n", strerror(ret), ret); + printf("ERROR: ioctl not successful (connect, %s (%d))\n", strerror(-ret), ret); exit(EXIT_FAILURE); } @@ -242,7 +242,7 @@ int main(int argc, char *argv[]) const int ret = ioctl(fd, IOCTL_OPEN, &msg); if (ret < 0) { - printf("ERROR: ioctl not successful (config file, %s (%d))\n", strerror(ret), ret); + printf("ERROR: ioctl not successful (config file, %s (%d))\n", strerror(-ret), ret); exit(EXIT_FAILURE); } -- cgit v1.2.3-55-g7522