]> git.puffer.fish Git - matthieu/frr.git/commit
2005-03-14 Paul Jakma <paul.jakma@sun.com>
authorpaul <paul>
Mon, 14 Mar 2005 17:35:52 +0000 (17:35 +0000)
committerpaul <paul>
Mon, 14 Mar 2005 17:35:52 +0000 (17:35 +0000)
commitb89614766b083c83f6a84126a02c88311129e12d
tree51b3f37416bc394f70bb9b8b9e41690bbe1ac72e
parent9dbc797274ca5df614d61784658b8f809bbd8e2b
2005-03-14 Paul Jakma <paul.jakma@sun.com>

* command.c: (sort_node) use vector_max instead of referencing
  (struct vector *)->max directly. Test that vector_max is > 0
  before using it to calculate an index.
  Fixup vector loop to make main body conditional on vector slot
  not being empty.
  (cmd_cmdsize) Fixup vector loop to make main body conditional on
  vector slot not being empty.
  (cmd_filter_by_completion) ditto
  (cmd_filter_by_string) ditto
  (is_cmd_ambiguous) ditto
  (cmd_describe_command_real) Change index integers to unsigned.
  Test that vector_max is > 0 before using it to calculate an index.
  Return immediately with CMD_ERR_NO_MATCH if vline has no
  active slots.
  Fixup vector loop to make main body conditional on vector slot
  not being empty.
  (cmd_complete_command_real) ditto.
  (cmd_execute_command_strict) Fixup vector loop to be conditional
  on non-null slot.
lib/ChangeLog
lib/command.c