diff options
author | René Korthaus <[email protected]> | 2018-02-28 14:52:01 +0100 |
---|---|---|
committer | René Korthaus <[email protected]> | 2018-02-28 14:52:01 +0100 |
commit | e904fb46c1337787780e12358a496017f9ceedcb (patch) | |
tree | 13273f792a6cf34b9842629296c06409b674823b /src/lib | |
parent | 45edefdf92ced2fdbf16bd9ecfea8de24732dc52 (diff) |
One comment fix and one formatting fix [ci skip]
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/entropy/getentropy/getentropy.h | 2 | ||||
-rw-r--r-- | src/lib/ffi/ffi_mp.cpp | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/entropy/getentropy/getentropy.h b/src/lib/entropy/getentropy/getentropy.h index 997f4c55e..26783cf78 100644 --- a/src/lib/entropy/getentropy/getentropy.h +++ b/src/lib/entropy/getentropy/getentropy.h @@ -13,7 +13,7 @@ namespace Botan { /** -* Entropy source using the getentropy(2) sustem call first introduced in +* Entropy source using the getentropy(2) system call first introduced in * OpenBSD 5.6 and added to Solaris 11.3. */ class Getentropy final : public Entropy_Source diff --git a/src/lib/ffi/ffi_mp.cpp b/src/lib/ffi/ffi_mp.cpp index fc81310ea..cbd784d7a 100644 --- a/src/lib/ffi/ffi_mp.cpp +++ b/src/lib/ffi/ffi_mp.cpp @@ -129,9 +129,10 @@ int botan_mp_to_bin(const botan_mp_t mp, uint8_t vec[]) int botan_mp_to_uint32(const botan_mp_t mp, uint32_t* val) { - if(val == nullptr) { - return BOTAN_FFI_ERROR_NULL_POINTER; - } + if(val == nullptr) + { + return BOTAN_FFI_ERROR_NULL_POINTER; + } return BOTAN_FFI_DO(Botan::BigInt, mp, bn, { *val = bn.to_u32bit(); }); } |