Commit 2db2ab2a authored by Daiki Ueno's avatar Daiki Ueno Committed by Niels Möller
Browse files

eccdata: Redirect ecc_point_out to given stream, instead of stderr


Signed-off-by: default avatarDaiki Ueno <dueno@redhat.com>
parent 7ef335be
...@@ -694,11 +694,11 @@ ecc_point_out (FILE *f, const struct ecc_point *p) ...@@ -694,11 +694,11 @@ ecc_point_out (FILE *f, const struct ecc_point *p)
fprintf (f, "zero"); fprintf (f, "zero");
else else
{ {
fprintf (stderr, "("); fprintf (f, "(");
mpz_out_str (stderr, 16, p->x); mpz_out_str (f, 16, p->x);
fprintf (stderr, ",\n "); fprintf (f, ",\n ");
mpz_out_str (stderr, 16, (p)->y); mpz_out_str (f, 16, (p)->y);
fprintf (stderr, ")"); fprintf (f, ")");
} }
} }
#define ASSERT_EQUAL(p, q) do { \ #define ASSERT_EQUAL(p, q) do { \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment