summaryrefslogtreecommitdiffstats
path: root/libtommath/bn_mp_init_copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtommath/bn_mp_init_copy.c')
-rw-r--r--libtommath/bn_mp_init_copy.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/libtommath/bn_mp_init_copy.c b/libtommath/bn_mp_init_copy.c
index 37a57ec..c711e06 100644
--- a/libtommath/bn_mp_init_copy.c
+++ b/libtommath/bn_mp_init_copy.c
@@ -16,19 +16,19 @@
*/
/* creates "a" then copies b into it */
-int mp_init_copy (mp_int * a, mp_int * b)
+int mp_init_copy(mp_int *a, mp_int *b)
{
- int res;
+ int res;
- if ((res = mp_init_size (a, b->used)) != MP_OKAY) {
- return res;
- }
+ if ((res = mp_init_size(a, b->used)) != MP_OKAY) {
+ return res;
+ }
- if((res = mp_copy (b, a)) != MP_OKAY) {
- mp_clear(a);
- }
+ if ((res = mp_copy(b, a)) != MP_OKAY) {
+ mp_clear(a);
+ }
- return res;
+ return res;
}
#endif