aboutsummaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-05-20 22:30:08 -0400
committerNick Mathewson <nickm@torproject.org>2010-05-20 22:30:08 -0400
commit9563b0d508e3fe5d5af3f85f659a110175a8e156 (patch)
treef86bdb6b567983d1ad669f40af2cb39d3ddee46d /src/tools
parent4c38069b393cb7e3f9cd8d447e5fa448f77f196f (diff)
downloadtor-9563b0d508e3fe5d5af3f85f659a110175a8e156.tar
tor-9563b0d508e3fe5d5af3f85f659a110175a8e156.tar.gz
clean up whitespace in src/tools
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/tor-checkkey.c3
-rw-r--r--src/tools/tor-gencert.c3
-rw-r--r--src/tools/tor-resolve.c4
3 files changed, 4 insertions, 6 deletions
diff --git a/src/tools/tor-checkkey.c b/src/tools/tor-checkkey.c
index e15cc46df..a24412499 100644
--- a/src/tools/tor-checkkey.c
+++ b/src/tools/tor-checkkey.c
@@ -12,7 +12,8 @@
#include <openssl/bn.h>
#include <openssl/rsa.h>
-int main(int c, char **v)
+int
+main(int c, char **v)
{
crypto_pk_env_t *env;
char *str;
diff --git a/src/tools/tor-gencert.c b/src/tools/tor-gencert.c
index 9eb9c798e..13a640cb8 100644
--- a/src/tools/tor-gencert.c
+++ b/src/tools/tor-gencert.c
@@ -64,7 +64,6 @@ show_help(void)
"[-c certificate_file]\n"
" [-m lifetime_in_months] [-a address:port] "
"[--passphrase-fd <fd>]\n");
-
}
/* XXXX copied from crypto.c */
@@ -408,7 +407,6 @@ get_fingerprint(EVP_PKEY *pkey, char *out)
return r;
}
-
/** Set <b>out</b> to the hex-encoded fingerprint of <b>pkey</b>. */
static int
get_digest(EVP_PKEY *pkey, char *out)
@@ -502,7 +500,6 @@ generate_certificate(void)
return 0;
}
-
/** Entry point to tor-gencert */
int
main(int argc, char **argv)
diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c
index dbab3da9c..2639d9e59 100644
--- a/src/tools/tor-resolve.c
+++ b/src/tools/tor-resolve.c
@@ -148,7 +148,7 @@ parse_socks4a_resolve_response(const char *hostname,
static const char *
socks5_reason_to_string(char reason)
{
- switch(reason) {
+ switch (reason) {
case SOCKS5_SUCCEEDED:
return "succeeded";
case SOCKS5_GENERAL_ERROR:
@@ -251,7 +251,7 @@ do_resolve(const char *hostname, uint32_t sockshost, uint16_t socksport,
}
if (parse_socks4a_resolve_response(hostname,
reply_buf, RESPONSE_LEN_4,
- result_addr)<0){
+ result_addr)<0) {
return -1;
}
} else {