Wireshark-commits: [Wireshark-commits] rev 41502: /trunk/epan/dissectors/ /trunk/epan/dissectors/:

Date: Mon, 12 Mar 2012 14:39:00 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=41502

User: wmeier
Date: 2012/03/12 07:39 AM

Log:
 Cleanup & minor bug fixes:
 - Don't put a value_string array in a .h file (included in several .c files);
 - 'if ((a!=NULL) && !b) {fail}' should be 'if ((a==NULL) || !b) {fail}' in a few cases;
 - Use value_string_ext as appropriate;
 - Use val_to_str_const() in place of val_to_str() as appropriate;
 - Use tvb_new_subset_remaining(...) instead of tvb_new_subset(..., -1, -1);
 - Use tvb_reported_length_remaining() in place of tvb_length_remaining() in some cases;
 - tvb_reported_length_remaining() can return -1;
 - Use of TFS(&true_false) not req'd since "True"/"False" is the default if no TFS provided;
 - Reformat various (long lines, etc);
 - Use consistent indentation.

Directory: /trunk/epan/dissectors/
  Changes    Path                 Action
  +1396 -1381 packet-btl2cap.c     Modified
  +16 -16    packet-btl2cap.h     Modified
  +447 -448  packet-btobex.c      Modified
  +648 -639  packet-btrfcomm.c    Modified
  +3 -3      packet-btrfcomm.h    Modified
  +798 -698  packet-btsdp.c       Modified
  +1 -99     packet-btsdp.h       Modified