--- a/src/error.c Sun Feb 22 07:53:34 2009 +0200
+++ b/src/error.c Sun Feb 22 08:21:22 2009 +0200
@@ -17,10 +17,11 @@
switch (code) {
ERROR_NAME( ERR_CALLOC, "calloc" );
ERROR_NAME( ERR_GETADDRINFO, "getaddrinfo" );
- ERROR_NAME( ERR_GETADDRINFO_EMPTY, "getaddrinfo" );
+ ERROR_NAME( ERR_GETADDRINFO_EMPTY, "getaddrinfo: no results" );
ERROR_NAME( ERR_SOCKET, "socket" );
ERROR_NAME( ERR_CONNECT, "connect" );
ERROR_NAME( ERR_READ, "read" );
+ ERROR_NAME( ERR_READ_EOF, "read: EOF" );
ERROR_NAME( ERR_WRITE, "write" );
ERROR_NAME( ERR_GNUTLS_CERT_ALLOC_CRED, "gnutls_certificate_allocate_credentials" );
ERROR_NAME( ERR_GNUTLS_GLOBAL_INIT, "gnutls_global_init" );
@@ -32,7 +33,7 @@
}
}
-const char *error_msg (struct error_info *err)
+const char *error_msg (const struct error_info *err)
{
static char msg[ERROR_MSG_MAXLEN];