From 5725c1bf093767c276e02a33a00246c2aa5f81bb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Wed, 9 Jan 2002 15:55:47 +0100
Subject: [PATCH] (nettle_mpz_get_str_256): Declare the input argument const.

Rev: src/nettle/bignum.c:1.3
Rev: src/nettle/bignum.h:1.2
---
 bignum.c | 2 +-
 bignum.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bignum.c b/bignum.c
index c9f5a460..d1c3c5d0 100644
--- a/bignum.c
+++ b/bignum.c
@@ -35,7 +35,7 @@
 #include <string.h>
 
 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,
-- 
GitLab