From ec47efe2b20e8ff21489744caaf646c692243860 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Mon, 18 Feb 2013 17:12:20 +0100 Subject: WIP commit for listener support. --- lib/err.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lib/err.c') 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; } -- cgit v1.1