From 4b819fa20a8d007a10f2d3e8d6a5dedf7f18fc9a Mon Sep 17 00:00:00 2001 From: Xin LI Date: Fri, 28 Feb 2014 19:12:44 +0000 Subject: Undo two previous imports which was never done in preparation of doing a new import. --- ncurses/trace/trace_buf.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'ncurses/trace/trace_buf.c') diff --git a/ncurses/trace/trace_buf.c b/ncurses/trace/trace_buf.c index 46baba4796b2..6345acc035fc 100644 --- a/ncurses/trace/trace_buf.c +++ b/ncurses/trace/trace_buf.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2010,2011 Free Software Foundation, Inc. * + * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -35,9 +35,7 @@ #include -MODULE_ID("$Id: trace_buf.c,v 1.17 2011/01/22 19:48:16 tom Exp $") - -#ifdef TRACE +MODULE_ID("$Id: trace_buf.c,v 1.14 2008/08/03 15:13:56 tom Exp $") #define MyList _nc_globals.tracebuf_ptr #define MySize _nc_globals.tracebuf_used @@ -49,7 +47,7 @@ _nc_trace_alloc(int bufnum, size_t want) if (bufnum >= 0) { if ((size_t) (bufnum + 1) > MySize) { - size_t need = (size_t) (bufnum + 1) * 2; + size_t need = (bufnum + 1) * 2; if ((MyList = typeRealloc(TRACEBUF, need, MyList)) != 0) { while (need > MySize) MyList[MySize++].text = 0; @@ -114,6 +112,3 @@ _nc_trace_bufcat(int bufnum, const char *value) } return buffer; } -#else -EMPTY_MODULE(_nc_empty_trace_buf) -#endif /* TRACE */ -- cgit v1.2.3