summaryrefslogtreecommitdiff
path: root/lib/err.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2013-02-18 17:12:20 +0100
committerLinus Nordberg <linus@nordberg.se>2013-02-19 11:07:00 +0100
commitec47efe2b20e8ff21489744caaf646c692243860 (patch)
tree298581f11142b39e185b9c10e8bd6f1c435b026c /lib/err.c
parent10fce2b693e8483d9cc7c024c1a2cd66e8fbef27 (diff)
WIP commit for listener support.
Diffstat (limited to 'lib/err.c')
-rw-r--r--lib/err.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/err.c b/lib/err.c
index 19e1f33..e0bcea9 100644
--- a/lib/err.c
+++ b/lib/err.c
@@ -1,4 +1,4 @@
-/* Copyright 2010, 2011 NORDUnet A/S. All rights reserved.
+/* Copyright 2010,2011,2013 NORDUnet A/S. All rights reserved.
See LICENSE for licensing information. */
#if defined HAVE_CONFIG_H
@@ -159,9 +159,9 @@ int
err_conn_push_err (struct rs_connection *conn, struct rs_error *err)
{
- if (conn->err)
- rs_err_free (conn->err);
- conn->err = err; /* FIXME: use a stack */
+ if (conn->base_.err)
+ rs_err_free (conn->base_.err);
+ conn->base_.err = err; /* FIXME: use a stack */
return err->code;
}
@@ -225,8 +225,8 @@ rs_err_conn_pop (struct rs_connection *conn)
if (!conn)
return NULL; /* FIXME: RSE_INVALID_CONN */
- err = conn->err;
- conn->err = NULL;
+ err = conn->base_.err;
+ conn->base_.err = NULL;
return err;
}
@@ -236,8 +236,8 @@ rs_err_conn_peek_code (struct rs_connection *conn)
{
if (!conn)
return -1; /* FIXME: RSE_INVALID_CONN */
- if (conn->err)
- return conn->err->code;
+ if (conn->base_.err)
+ return conn->base_.err->code;
return RSE_OK;
}