[Asterisk-Dev] LOCAL_USER cleanup update
Luigi Rizzo
rizzo at icir.org
Wed Jan 11 12:37:35 MST 2006
On Wed, Jan 11, 2006 at 09:56:20AM -0600, Kevin P. Fleming wrote:
> Luigi Rizzo wrote:
>
> > Actually, i suspect that the lifetime of the above info is
> > limited to a single execution of app_exec, so probably one does
> > not even need to calloc() the structure, but could just have it
> > as an automatic variable in app_exec():
> >
> > struct ivr_localuser foo, *u = foo; /* use *u to minimize diffs */
>
> Yes, this would work. I don't see a great deal of value in this change
well, it allows you to get rid of the localuser stuff from all
modules, and put it in one place.
Especially for newer modules, this significantly reduces
the bugfixing work.
cheers
luigi
> on its own, but I'll reserve judgement until I see the rest of the stuff
> you are working on :-)
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Dev mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
More information about the asterisk-dev
mailing list