diff options
author | horchi <vdr@jwendel.de> | 2017-03-20 17:55:35 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2017-03-20 17:55:35 +0100 |
commit | 1fe6380b69b14c3840010aed520aeb2e946219a5 (patch) | |
tree | 392ff4401fedee9d6c1ba12b3ca27ea443e114fc /svdrpclient.c | |
parent | fa25e7126b97348f825abad9fabb2bdc82e52a05 (diff) | |
download | vdr-plugin-epg2vdr-1fe6380b69b14c3840010aed520aeb2e946219a5.tar.gz vdr-plugin-epg2vdr-1fe6380b69b14c3840010aed520aeb2e946219a5.tar.bz2 |
2017-03-20: version 1.1.51 (horchi)\n - change: Removed compiler warnings when using clang\n - added: Added clang++ to Make.config (as optional compiler)\n - change: Fixed APIVERSION check for VDR < 2.2.0 (thx to nobanzai)\n\n1.1.51
Diffstat (limited to 'svdrpclient.c')
-rw-r--r-- | svdrpclient.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svdrpclient.c b/svdrpclient.c index 53be015..8b1ee54 100644 --- a/svdrpclient.c +++ b/svdrpclient.c @@ -479,7 +479,7 @@ int cSvdrpClient::connect() { // map hostname to ip - if (hostInfo = ::gethostbyname(ip)) + if ((hostInfo = ::gethostbyname(ip))) memcpy((char*)&remoteAddr, hostInfo->h_addr, hostInfo->h_length); else if ((remoteAddr = inet_addr(ip)) == INADDR_NONE) @@ -515,7 +515,7 @@ int cSvdrpClient::connect() { if (errno != EINPROGRESS) { - tell(0, "SVDRPCL: connect to %s:%hu failed: %s", ip, port, strerror(errno)); + tell(0, "SVDRPCL: connect to %s:%d failed: %s", ip, port, strerror(errno)); return -1; } @@ -554,7 +554,7 @@ int cSvdrpClient::connect() if (result != 0) { - tell(0, "SVDRPCL: Error connecting to %s:%hu: %s", ip, port, strerror(errno)); + tell(0, "SVDRPCL: Error connecting to %s:%d: %s", ip, port, strerror(errno)); ::close(sock); return -1; @@ -597,7 +597,7 @@ int cSvdrpClient::open() if (greeting.First() && greeting.First()->Text()) msg = greeting.First()->Text(); - tell(2, "SVDRPCL: connected to %s:%hu '%s'", ip, port, msg); + tell(2, "SVDRPCL: connected to %s:%d '%s'", ip, port, msg); return 0; } |