[OTR-dev] 4.0.0-rc3 ready to roll. Please try it out!
Ian Goldberg
ian at cypherpunks.ca
Tue Aug 28 11:27:25 EDT 2012
On Tue, Aug 28, 2012 at 01:34:11PM +0200, Thibaut VARENE wrote:
> On Tue, Aug 28, 2012 at 2:24 AM, Ian Goldberg <ian at cypherpunks.ca> wrote:
>
> > Indeed, otrl_init(ver_major, ver_minor, ver_sub) calls exit(1) if the
> > passed version numbers are incompatible with the library's actual
> > version.
> >
> > Seeing as how it's intended to be called from this macro:
> >
> > #define OTRL_INIT do { \
> > otrl_init(OTRL_VERSION_MAJOR, OTRL_VERSION_MINOR, OTRL_VERSION_SUB); \
> > } while(0)
> >
> > I suppose we could change otrl_init to return an error code, and change
> > the *macro* to call exit() upon otrl_init returning an error. Although
> > technically the ABI would change, the API wouldn't.
>
> As long as the macro itself isn't used in the library, this should indeed work.
>
> > I will consider this for inclusion before release.
> >
> > Thanks for the note!
>
> You're welcome!
Thibaut,
Can you apply this patch and see if it cleans things up? If it looks
good, I'll include it for 4.0.0.
Thanks,
- Ian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no_exit.diff
Type: text/x-diff
Size: 3469 bytes
Desc: not available
URL: <http://lists.cypherpunks.ca/pipermail/otr-dev/attachments/20120828/83b6515c/attachment.diff>
More information about the OTR-dev
mailing list