diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2014-01-19 14:35:25 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2014-01-19 14:35:25 +0100 |
commit | fae4e36024f08ed96cb79195935f637bdfc9875b (patch) | |
tree | 2c13895a0b54eb7b6d6a5f815b65891acff34961 /rand | |
parent | cf6b3dd7ae4bd3ae91a2a23dcb40361ca2e52f98 (diff) | |
download | gmp-fae4e36024f08ed96cb79195935f637bdfc9875b.tar.gz |
Get rid of varargs code and references.
Diffstat (limited to 'rand')
-rw-r--r-- | rand/rand.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/rand/rand.c b/rand/rand.c index 4039ac35b..984420224 100644 --- a/rand/rand.c +++ b/rand/rand.c @@ -17,39 +17,16 @@ License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU MP Library. If not, see https://www.gnu.org/licenses/. */ -#include "config.h" - -#include <stdio.h> /* for NULL */ - -#if HAVE_STDARG #include <stdarg.h> -#else -#include <varargs.h> -#endif #include "gmp.h" #include "gmp-impl.h" void -#if HAVE_STDARG -gmp_randinit (gmp_randstate_t rstate, - gmp_randalg_t alg, - ...) -#else -gmp_randinit (va_alist) - va_dcl -#endif +gmp_randinit (gmp_randstate_t rstate, gmp_randalg_t alg, ...) { va_list ap; -#if HAVE_STDARG va_start (ap, alg); -#else - __gmp_randstate_struct *rstate; - gmp_randalg_t alg; - va_start (ap); - rstate = va_arg (ap, __gmp_randstate_struct *); - alg = va_arg (ap, gmp_randalg_t); -#endif switch (alg) { case GMP_RAND_ALG_LC: |