On Mon, Nov 25, 2002 at 04:10:02PM +0000, Paul Johnston wrote:
> >Use arg_set_value() to change the value if it exists already, and that
> >should be sufficient. You should also call arg_free() on the value
> >you're replacing.
> >
> Problem is, if I take that approach, then I'll need to make changes to
> nasl_plugins, nes_plugins and perl_plugins. It struck me that adding
> arg_remove_value() would be a cleaner way.
>
> I'm easy though - what do you reckon?
I think it would be cleaner to edit {nasl,nes}_plugins.c. As the way the
arglists are used is a bit messy (to say the least), arg_rm_value()
would cause more harm than good (as the location of the begining of the
list might change).
-- Renaud
ps: please continue this discussion to nessus-devel@list.nessus.org
please
> >Use arg_set_value() to change the value if it exists already, and that
> >should be sufficient. You should also call arg_free() on the value
> >you're replacing.
> >
> Problem is, if I take that approach, then I'll need to make changes to
> nasl_plugins, nes_plugins and perl_plugins. It struck me that adding
> arg_remove_value() would be a cleaner way.
>
> I'm easy though - what do you reckon?
I think it would be cleaner to edit {nasl,nes}_plugins.c. As the way the
arglists are used is a bit messy (to say the least), arg_rm_value()
would cause more harm than good (as the location of the begining of the
list might change).
-- Renaud
ps: please continue this discussion to nessus-devel@list.nessus.org
please