Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-smb.c smb.h

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, 17 Dec 2003 18:18:55 -0600 (CST)
guy         2003/12/17 18:18:55 CST

  Modified files:
    .                    packet-smb.c smb.h 
  Log:
  The "cmd" members of "smb_saved_info_t" and "smb_info_t" structures
  always contain an SMB command code (SMB requests and responses both have
  command codes, so there's no "unknown" out-of-band value); make it a
  "guint8".
  
  Make the argument to "decode_smb_name()" a "guint8" as an SMB command
  code is passed to it ("guint8" and "unsigned char" are the same types on
  all platforms we're likely to deal with, so it's a cosmetic change, not
  a semantic one).
  
  Put in an extra "GPOINTER_TO_UINT()" call before casting
  "si->sip->extra_info" to "guint16", to squelch compiler warnings.
  
  Revision  Changes    Path
  1.379     +6 -6      ethereal/packet-smb.c
  1.54      +3 -3      ethereal/smb.h