Wireshark-commits: [Wireshark-commits] rev 46142: /trunk/plugins/profinet/ /trunk/plugins/profinet/
Date: Thu, 22 Nov 2012 12:45:50 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=46142

User: etxrab
Date: 2012/11/22 04:45 AM

Log:
 Revert http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=46140
 
 looks like the worong variables may be used in the for loops.
 
 ../../../plugins/profinet/packet-dcerpc-pn-io.c: In function 'dissect_PDInterfaceMrpDataAdjust_block':
 ../../../plugins/profinet/packet-dcerpc-pn-io.c:4420:12: warning: variable 'u8MrpInstance' set but not used [-Wunused-but-set-variable]
 ../../../plugins/profinet/packet-dcerpc-pn-io.c: In function 'dissect_PDInterfaceMrpDataReal_block':
 ../../../plugins/profinet/packet-dcerpc-pn-io.c:4542:5: error: suggest parentheses around assignment used as truth value [-Werror=parentheses]
 ../../../plugins/profinet/packet-dcerpc-pn-io.c:4491:12: warning: variable 'u8MrpInstance' set but not used [-Wunused-but-set-variable]
 ../../../plugins/profinet/packet-dcerpc-pn-io.c: In function 'dissect_PDInterfaceMrpDataCheck_block':
 ../../../plugins/profinet/packet-dcerpc-pn-io.c:4570:12: warning: variable 'u8MrpInstance' set but not used [-Wunused-but-set-variable]
 ../../../plugins/profinet/packet-dcerpc-pn-io.c: In function 'dissect_MrpInstanceDataCheck_block':
 ../../../plugins/profinet/packet-dcerpc-pn-io.c:5426:160: error: unused parameter 'u16BodyLength' [-Werror=unused-parameter]
 ../../../plugins/profinet/packet-dcerpc-pn-io.c: In function 'dissect_ARBlockReq_block':
 ../../../plugins/profinet/packet-dcerpc-pn-io.c:6873:9: error: format '%x' expects a matching 'unsigned int' argument [-Werror=format]
 ../../../plugins/profinet/packet-dcerpc-pn-io.c:6811:13: warning: variable 'u16ARDevAccess' set but not used [-Wunused-but-set-variable]
 ../../../plugins/profinet/packet-dcerpc-pn-io.c: At top level:
 ../../../plugins/profinet/packet-dcerpc-pn-io.c:7628:1: error: 'dissect_IRTFrameBlock_block' defined but not used [-Werror=unused-function]
 cc1: all warnings being treated as errors

Directory: /trunk/plugins/profinet/
  Changes    Path                     Action
  +112 -838  packet-dcerpc-pn-io.c    Modified
  +40 -132   packet-pn-mrp.c          Modified
  +12 -65    packet-pn-ptcp.c         Modified
  +34 -166   packet-pn-rt.c           Modified
  +1 -7      packet-pn.c              Modified
  +1 -5      packet-pn.h              Modified