Duplicate const type specifier
Albert Chin
gcrypt-devel at mlists.thewrittenword.com
Fri Oct 17 21:21:45 CEST 2008
The Sun, HP, and IRIX C compilers complain (or error out) with a
duplicate type specifier for the following in libgcrypt-1.4.3:
const char const ...
Patch attached.
--
albert chin (china at thewrittenword.com)
-------------- next part --------------
Index: cipher/ecc.c
===================================================================
--- cipher/ecc.c.orig 2008-09-16 16:42:16.000000000 +0000
+++ cipher/ecc.c 2008-10-17 19:04:35.382534715 +0000
@@ -1189,7 +1189,7 @@
{
gpg_err_code_t ec = 0;
gcry_sexp_t l1;
- static const char const names[] = "pabgnq";
+ static const char names[] = "pabgnq";
gcry_mpi_t values[6];
int idx;
Index: src/fips.c
===================================================================
--- src/fips.c.orig 2008-09-18 10:20:27.000000000 +0000
+++ src/fips.c 2008-10-17 19:06:42.249867283 +0000
@@ -133,7 +133,7 @@
{
FILE *fp;
int saved_errno;
- static const char const procfname[] = "/proc/sys/crypto/fips_enabled";
+ static const char procfname[] = "/proc/sys/crypto/fips_enabled";
fp = fopen (procfname, "r");
if (fp)
Index: src/hmac256.c
===================================================================
--- src/hmac256.c.orig 2008-09-03 10:04:42.000000000 +0000
+++ src/hmac256.c 2008-10-17 19:08:57.031967959 +0000
@@ -526,7 +526,7 @@
const char * const desc;
const char * const data;
const char * const key;
- const char const expect[32];
+ const char expect[32];
} tv[] =
{
{ "data-28 key-4",
More information about the Gcrypt-devel
mailing list