summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-07-16 11:10:14 -0400
committerNick Mathewson <nickm@torproject.org>2015-07-16 11:10:14 -0400
commitb5cfcb2045262a3ce9485c4d5a0c91b89174e539 (patch)
tree9c4fb362b6b08f4acb5377e5fc4dd5ac53acf4d5 /src/common
parent8cb50703761affb496f2035768e0f024d9263938 (diff)
downloadtor-b5cfcb2045262a3ce9485c4d5a0c91b89174e539.tar.gz
tor-b5cfcb2045262a3ce9485c4d5a0c91b89174e539.zip
Fix most check-spaces issues
Diffstat (limited to 'src/common')
-rw-r--r--src/common/compat.c4
-rw-r--r--src/common/crypto_curve25519.c2
-rw-r--r--src/common/util.c2
3 files changed, 5 insertions, 3 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index 07f011d63d..4930c05c2a 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -80,7 +80,8 @@ wint_t _getwch(void);
#define WEOF (wchar_t)(0xFFFF)
#endif
#if defined(HAVE_DECL_SECUREZEROMEMORY) && !HAVE_DECL_SECUREZEROMEMORY
-static inline void SecureZeroMemory(PVOID ptr, SIZE_T cnt)
+static inline void
+SecureZeroMemory(PVOID ptr, SIZE_T cnt)
{
volatile char *vcptr = (volatile char*)ptr;
while (cnt--)
@@ -3378,3 +3379,4 @@ tor_getpass(const char *prompt, char *output, size_t buflen)
#error "No implementation for tor_getpass found!"
#endif
}
+
diff --git a/src/common/crypto_curve25519.c b/src/common/crypto_curve25519.c
index 113ac89df7..043782423f 100644
--- a/src/common/crypto_curve25519.c
+++ b/src/common/crypto_curve25519.c
@@ -353,7 +353,7 @@ curve25519_basepoint_spot_check(void)
/* Check the most basic possible sanity via the test secret/public key pair
* used in "Cryptography in NaCl - 2. Secret keys and public keys". This
- * may catch catastrophic failures on systems where Curve25519 is expensive,
+ * may catch catastrophic failures on systems where Curve25519 is expensive,
* without requiring a ton of key generation.
*/
curve25519_use_ed = 1;
diff --git a/src/common/util.c b/src/common/util.c
index 1849613512..a5b5488b0a 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -2561,7 +2561,7 @@ read_file_to_str_until_eof(int fd, size_t max_bytes_to_read, size_t *sz_out)
size_t string_max = 0;
if (max_bytes_to_read+1 >= SIZE_T_CEILING) {
- errno = EINVAL;
+ errno = EINVAL;
return NULL;
}