Skip to content

Commit

Permalink
configure: Fix incorrect argument type in gcry_md_open
Browse files Browse the repository at this point in the history
The gcry_md_open function expects a gcry_md_hd_t * argument,
and not a gcry_md_hd_t argument (which is also a pointer behind
the typedef).  Future compilers will likely treat this as an
error, causing the check to fail unconditionally.
  • Loading branch information
fweimer-rh committed Dec 19, 2023
1 parent 51010dd commit b5fdf25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ elif test "$ac_cv_header_gcrypt_h" = "yes"; then
LIBS="$LIBS `$LIBGCRYPT_CONFIG --libs`"

AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <gcrypt.h>]], [[ gcry_md_hd_t hash; gcry_md_open(hash, GCRY_MD_MD5, 0); ]])],[have_digest_gcrypt=yes],[have_digest_gcrypt=no])
#include <gcrypt.h>]], [[ gcry_md_hd_t hash; gcry_md_open(&hash, GCRY_MD_MD5, 0); ]])],[have_digest_gcrypt=yes],[have_digest_gcrypt=no])

CPPFLAGS="$oCPPFLAGS"
LIBS="$oLIBS"
Expand Down

0 comments on commit b5fdf25

Please sign in to comment.