~simonsp/ocsinventory-deploy-tool/fix_addnetwork_function

Viewing all changes in revision 11.

  • Committer: simonsp
  • Date: 2010-02-22 18:53:53 UTC
  • Revision ID: simonsp@03715ctis213-m-20100222185353-0i1nlefcrwhdbqxn
Fixed the add to network function.  n in the function was originally declared as a BYTE.  However since n is compared to values ranging up to 255, this causes a potential infinate loop.  BYTE overlows at 255 so BYTE <= 255 will never evaualate as false.  changed byte to WORD, and casted back to BYTE on function calls.  Code now supports pushing to multiple subnets.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: