Add fix for compilation problems as suggested at

http://point-at-infinity.org/ssss/

Noticed by: YAPHR
This commit is contained in:
Edwin Groothuis 2007-09-09 00:26:25 +00:00
parent 5e02beeb53
commit a4b7f57f65
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=199136
2 changed files with 12 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= ssss PORTNAME= ssss
PORTVERSION= 0.5 PORTVERSION= 0.5
PORTREVISION= 1
CATEGORIES= security CATEGORIES= security
MASTER_SITES= http://point-at-infinity.org/ssss/ MASTER_SITES= http://point-at-infinity.org/ssss/

View file

@ -0,0 +1,11 @@
--- ssss.c.orig Sun Sep 9 10:24:42 2007
+++ ssss.c Sun Sep 9 10:24:48 2007
@@ -348,7 +348,7 @@
#define MPZ_SWAP(A, B) \
do { mpz_set(h, A); mpz_set(A, B); mpz_set(B, h); } while(0)
-int restore_secret(int n, mpz_t (*A)[n], mpz_t b[])
+int restore_secret(int n, void *A, mpz_t b[])
{
mpz_t (*AA)[n] = (mpz_t (*)[n])A;
int i, j, k, found;