--- a/src/nexus.c Sun Feb 22 07:21:28 2009 +0200
+++ b/src/nexus.c Sun Feb 22 07:53:34 2009 +0200
@@ -11,7 +11,7 @@
#include "sock.h"
#define CONNECT_HOST "irc.fixme.fi"
-#define CONNECT_SERV "6697"
+#define CONNECT_SERV "66976"
#define LINE_LENGTH 512
struct recvline_state {
@@ -112,13 +112,13 @@
// initialize
if (sock_init(&err))
- errx(1, "sock_init: %s", error_name(ERROR_CODE(&err)));
+ errx(1, "sock_init: %s", error_msg(&err));
memset(&recvline_ctx, 0, sizeof(recvline_ctx));
// over-simplified connect
if (sock_gnutls_connect(&sock, CONNECT_HOST, CONNECT_SERV, &err))
- errx(1, "sock_gnutls_connect: %s", error_name(ERROR_CODE(&err)));
+ errx(1, "sock_gnutls_connect: %s", error_msg(&err));
// read lines and dump them out
do {