Skip to content
Snippets Groups Projects
Commit bb87e9d7 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Test NDEFENSIVE_CHECKS instead of DEFENSIVE_CHECKS.

Test NDEBUG instead of DEBUG.
parent a14dfc32
No related branches found
No related tags found
No related merge requests found
/*
* $Id: internal-connections.c,v 0.19 1994/04/05 08:01:15 ceder Exp $
* $Id: internal-connections.c,v 0.20 1994/06/18 20:25:08 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -28,7 +28,7 @@
* Abstract routines on the data type Connection.
*/
static char *rcsid = "$Id: internal-connections.c,v 0.19 1994/04/05 08:01:15 ceder Exp $";
static char *rcsid = "$Id: internal-connections.c,v 0.20 1994/06/18 20:25:08 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -229,7 +229,7 @@ kill_client(Connection *cp)
--no_of_allocated_connections;
}
#ifdef DEFENSIVE_CHECKS
#ifndef NDEFENSIVE_CHECKS
INTERNAL void
check_conn_exists(Connection *foo)
......@@ -273,7 +273,7 @@ get_conn_by_number (Session_no session_no)
last_conn->session_no,
"and all_connections == NULL");
}
#ifdef DEFENSIVE_CHECKS
#ifndef NDEFENSIVE_CHECKS
else
check_conn_exists(last_conn);
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment