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

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)
fprintf (f, "zero");
else
{
fprintf (stderr, "(");
mpz_out_str (stderr, 16, p->x);
fprintf (stderr, ",\n ");
mpz_out_str (stderr, 16, (p)->y);
fprintf (stderr, ")");
fprintf (f, "(");
mpz_out_str (f, 16, p->x);
fprintf (f, ",\n ");
mpz_out_str (f, 16, (p)->y);
fprintf (f, ")");
}
}
#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