Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal file.c proto_hier_stats.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 4 Mar 2002 23:58:34 -0600 (CST)
guy         2002/03/04 23:58:32 CST

  Modified files:
    .                    file.c proto_hier_stats.c 
  Log:
  Have "wtap_seek_read()" return 0 on success and -1 on failure, and take
  an "err" argument that points to an "int" into which to put an error
  code if it fails.
  
  Check for errors in one call to it, and note that we should do so in
  other places.
  
  In the "wtap_seek_read()" call in the TCP graphing code, don't overwrite
  "cfile.pseudo_header", and make the buffer into which we read the data
  WTAP_MAX_PACKET_SIZE bytes, as it should be.
  
  In some of the file readers for text files, check for errors from the
  "parse the record header" and "parse the hex dump" routines when reading
  sequentially.
  
  In "csids_seek_read()", fix some calls to "file_error()" to check the
  error on the random stream (that being what we're reading).
  
  Revision  Changes    Path
  1.265     +20 -7     ethereal/file.c
  1.12      +5 -4      ethereal/proto_hier_stats.c