diff options
author | Roger Dingledine <arma@torproject.org> | 2004-03-12 13:02:16 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-03-12 13:02:16 +0000 |
commit | 45a3f6b97c0ccb9e4876ec28880fc6f4c1d412e8 (patch) | |
tree | da414c39c16b07e845b6329d1241ed15b233cfd0 /src | |
parent | 87797bcde58b0a19f420cb41632f331ca2b9040e (diff) | |
download | tor-45a3f6b97c0ccb9e4876ec28880fc6f4c1d412e8.tar tor-45a3f6b97c0ccb9e4876ec28880fc6f4c1d412e8.tar.gz |
more pesky tabs
svn:r1265
Diffstat (limited to 'src')
-rw-r--r-- | src/common/crypto.c | 10 | ||||
-rw-r--r-- | src/common/crypto.h | 6 | ||||
-rw-r--r-- | src/common/fakepoll.c | 2 | ||||
-rw-r--r-- | src/common/util.c | 10 |
4 files changed, 14 insertions, 14 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index d5a5a9c1e..4f5a14d6d 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -1047,14 +1047,14 @@ int crypto_seed_rng() if (!provider_set) { if (!CryptAcquireContext(&provider, NULL, NULL, PROV_RSA_FULL, 0)) { if (GetLastError() != NTE_BAD_KEYSET) { - log_fn(LOG_ERR,"Can't get CryptoAPI provider [1]"); - return -1; + log_fn(LOG_ERR,"Can't get CryptoAPI provider [1]"); + return -1; } /* Yes, we need to try it twice. */ if (!CryptAcquireContext(&provider, NULL, NULL, PROV_RSA_FULL, - CRYPT_NEWKEYSET)) { - log_fn(LOG_ERR,"Can't get CryptoAPI provider [2]"); - return -1; + CRYPT_NEWKEYSET)) { + log_fn(LOG_ERR,"Can't get CryptoAPI provider [2]"); + return -1; } } provider_set = 1; diff --git a/src/common/crypto.h b/src/common/crypto.h index 4ada97e51..f371f416a 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -74,10 +74,10 @@ typedef struct crypto_dh_env_st { crypto_dh_env_t *crypto_dh_new(); int crypto_dh_get_bytes(crypto_dh_env_t *dh); int crypto_dh_get_public(crypto_dh_env_t *dh, char *pubkey_out, - int pubkey_out_len); + int pubkey_out_len); int crypto_dh_compute_secret(crypto_dh_env_t *dh, - char *pubkey, int pubkey_len, - char *secret_out, int secret_out_len); + char *pubkey, int pubkey_len, + char *secret_out, int secret_out_len); void crypto_dh_free(crypto_dh_env_t *dh); /* symmetric crypto */ diff --git a/src/common/fakepoll.c b/src/common/fakepoll.c index 5b5d7daaf..2f91c1b45 100644 --- a/src/common/fakepoll.c +++ b/src/common/fakepoll.c @@ -32,7 +32,7 @@ int tor_poll(struct pollfd *ufds, unsigned int nfds, int timeout) { - unsigned int idx; + unsigned int idx; int maxfd, fd; int r; #ifdef MS_WINDOWS diff --git a/src/common/util.c b/src/common/util.c index 16e191d14..98930a639 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -527,9 +527,9 @@ int check_private_dir(const char *dirname, int create) } log(LOG_INFO, "Creating directory %s", dirname); #ifdef MS_WINDOWS - r = mkdir(dirname); + r = mkdir(dirname); #else - r = mkdir(dirname, 0700); + r = mkdir(dirname, 0700); #endif if (r) { log(LOG_WARN, "Error creating directory %s: %s", dirname, @@ -877,12 +877,12 @@ int tor_inet_aton(const char *c, struct in_addr* addr) uint32_t r; assert(c && addr); if (strcmp(c, "255.255.255.255") == 0) { - addr->s_addr = 0xFFFFFFFFu; - return 1; + addr->s_addr = 0xFFFFFFFFu; + return 1; } r = inet_addr(c); if (r == INADDR_NONE) - return 0; + return 0; addr->s_addr = r; return 1; #endif |