/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2012, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2017, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure, Markus Armbruster
*
* Empire is free software: you can redistribute it and/or modify
* Known contributors to this file:
* Dave Pare, 1989
* Steve McClure, 1998
- * Markus Armbruster, 2005-2009
+ * Markus Armbruster, 2005-2013
*/
#include <config.h>
close(sockfd); /* ignore this one */
} while ((res = res->ai_next) != NULL);
- if (res == NULL) { /* errno set from final connect() */
+ if (res == NULL) { /* errno from final socket() or connect() */
fprintf(stderr, "Can't connect to %s:%s: %s\n",
host, serv, strerror(errno));
exit(1);