Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-radius.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: Tue, 17 Dec 2002 16:49:34 -0600 (CST)
guy         2002/12/17 16:49:34 CST

  Modified files:
    .                    packet-radius.c 
  Log:
  Clean up the code a bit:
  
  	don't initialize variables that are set elsewhere before they're
  	used;
  
  	don't call "tvb_get_ptr()" to set a variable if you're not going
  	to use that variable;
  
  	make the two character-processing loops have the same structure;
  
  	put the result of the XORing into an unsigned character, so it
  	can be handed to "isprint()" without running the risk of bogus
  	behavior if the 8th bit is set.
  
  Revision  Changes    Path
  1.72      +17 -14    ethereal/packet-radius.c