From: Niels Möller Date: Wed, 9 Jan 2002 14:55:47 +0000 (+0100) Subject: (nettle_mpz_get_str_256): Declare the input argument X-Git-Tag: nettle_1.5_release_20020131~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5725c1bf093767c276e02a33a00246c2aa5f81bb;p=thirdparty%2Fnettle.git (nettle_mpz_get_str_256): Declare the input argument const. Rev: src/nettle/bignum.c:1.3 Rev: src/nettle/bignum.h:1.2 --- diff --git a/bignum.c b/bignum.c index c9f5a460..d1c3c5d0 100644 --- a/bignum.c +++ b/bignum.c @@ -35,7 +35,7 @@ #include void -nettle_mpz_get_str_256(unsigned length, uint8_t *s, mpz_t x) +nettle_mpz_get_str_256(unsigned length, uint8_t *s, const mpz_t x) { uint8_t *dst = s + length - 1; unsigned size = mpz_size(x); diff --git a/bignum.h b/bignum.h index 244d9573..b4cfcc37 100644 --- a/bignum.h +++ b/bignum.h @@ -32,7 +32,7 @@ /* Writes an unsigned integer as length octets, using big endian byte * order. */ void -nettle_mpz_get_str_256(unsigned length, uint8_t *s, mpz_t x); +nettle_mpz_get_str_256(unsigned length, uint8_t *s, const mpz_t x); void nettle_mpz_set_str_256(mpz_t x,