[hamradio-commits] [dump1090] 342/373: Use the anet-reported error string when reporting bind errors.

Matthew Ernisse mernisse-guest at moszumanska.debian.org
Thu Oct 23 14:58:35 UTC 2014


This is an automated email from the git hooks/post-receive script.

mernisse-guest pushed a commit to branch backport
in repository dump1090.

commit 186cac5c25075381f7c4f1793983f09131406909
Author: Oliver Jowett <oliver at mutability.co.uk>
Date:   Wed Oct 1 12:37:29 2014 +0100

    Use the anet-reported error string when reporting bind errors.
    
    errno may have been modified by the time you see it.
---
 net_io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net_io.c b/net_io.c
index 2b0ed9a..4aa2a54 100644
--- a/net_io.c
+++ b/net_io.c
@@ -88,7 +88,7 @@ void modesInitNet(void) {
 			int s = anetTcpServer(Modes.aneterr, services[j].port, NULL);
 			if (s == -1) {
 				fprintf(stderr, "Error opening the listening port %d (%s): %s\n",
-					services[j].port, services[j].descr, strerror(errno));
+					services[j].port, services[j].descr, Modes.aneterr);
 				exit(1);
 			}
 			anetNonBlock(Modes.aneterr, s);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090.git



More information about the pkg-hamradio-commits mailing list