Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/gtk main.c tcp_graph.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:39 -0600 (CST)
guy         2002/03/04 23:58:39 CST

  Modified files:
    gtk                  main.c tcp_graph.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.238     +4 -2      ethereal/gtk/main.c
  1.15      +7 -4      ethereal/gtk/tcp_graph.c