[INN-COMMITTERS] inn/innd (9 files)

Russ Allbery Russ_Allbery at isc.org
Fri Dec 27 02:34:06 UTC 2002


    Date: Thursday, December 26, 2002 @ 18:34:05
  Author: rra
    Path: /dist1/cvs/isc/inn/inn/innd

Modified: art.c cc.c chan.c innd.c innd.h nc.c newsfeeds.c ng.c site.c

Switch from INN's internal implementation of BUFFER to the struct buffer
implementation in libinn.  These changes were largely mechanical, changing
BUFFER to struct buffer and the names of the structure members to remove
the initial capitals (the way struct buffer is specified).

Only a few non-mechanical changes were made:  some buffer allocations were
changed to buffer_resize where the behavior would be identical, and lots
of sprintf calls into buffers were changed to snprintf.

Note that the meaning of the elements of the buffer structure is not
handled uniformly within innd.  This patch doesn't fix this, only paves the
way for incremental improvements in this area later.  Because of this,
there are places that the buffer functions could be used if the structure
elements were treated in a standard way that were left as direct
manipulation of the structure.

Also moves BUFFtrimcr to art.c as buffer_trimcr as a static function, since
it's only used there.


-------------+
 art.c       |  146 ++++++++++++++-------------
 cc.c        |   98 +++++++-----------
 chan.c      |  310 +++++++++++++++++++++++-----------------------------------
 innd.c      |   20 ++-
 innd.h      |   49 +++------
 nc.c        |  265 ++++++++++++++++++++++++++-----------------------
 newsfeeds.c |   16 +-
 ng.c        |   22 ++--
 site.c      |  239 +++++++++++++++++++++-----------------------
 9 files changed, 544 insertions(+), 621 deletions(-)


More information about the inn-committers mailing list