Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-ptp.c

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

From: guy@xxxxxxxxxxxx (Guy Harris)
Date: Wed, 12 May 2004 04:40:57 -0500 (CDT)
guy         2004/05/12 04:40:57 CDT

  Modified files:
    .                    packet-ptp.c 
  Log:
  You can hand a string to "col_add_str()" as an argument - or to
  "col_set_str()", for that matter.
  
  Eliminate a compiler warning by initializing a variable.
  
  Don't use "match_strval()" on values you don't know for certain are in
  the value_string table - use "val_to_str()", so that you don't get a
  null pointer if the value isn't in that table.  ("Know for certain"
  meaning "the code has made sure it's a value that's in the table", not
  "the protocol spec says the field must have one of the values in the
  table".)
  
  Revision  Changes    Path
  1.2       +10 -15    ethereal/packet-ptp.c