Simon Josefsson <[EMAIL PROTECTED]> writes:

>        /* Check version of libgcrypt. */
>        if (!gcry_check_version (GCRYPT_VERSION))
>          die ("version mismatch\n");

Can't you use strverscmp for this?  E.g.:

    if (strverscmp (GCRYPT_VERSION, VERSION) < 0)
      die ("version mismatch\n");

Even if strverscmp itself can't be used directly, it seems to me that
its use would greatly simplify this package, and avoid the
integer-overflow glitches Jim mentioned.


_______________________________________________
bug-gnulib mailing list
bug-gnulib@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnulib

Reply via email to