From 64b88167d1d480891fa79e13562b08993a2b564a Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 18 Jun 2008 16:35:26 +0000 Subject: [PATCH] Remove aborts. --- array.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/array.h b/array.h index 38b703d9..42ac2258 100644 --- a/array.h +++ b/array.h @@ -1,4 +1,4 @@ -/* $Id: array.h,v 1.3 2008-06-16 07:01:40 nicm Exp $ */ +/* $Id: array.h,v 1.4 2008-06-18 16:35:26 nicm Exp $ */ /* * Copyright (c) 2006 Nicholas Marriott @@ -46,8 +46,6 @@ } while (0) #define ARRAY_SET(a, i, s) do { \ - if (((u_int) (i)) >= (a)->num) \ - abort(); \ (a)->list[i] = s; \ } while (0) @@ -57,8 +55,6 @@ (a)->num++; \ } while (0) #define ARRAY_REMOVE(a, i) do { \ - if (((u_int) (i)) >= (a)->num) \ - abort(); \ if ((i) < (a)->num - 1) { \ memmove((a)->list + (i), (a)->list + (i) + 1, \ ARRAY_ITEMSIZE(a) * ((a)->num - (i) - 1)); \