From a6f51001a5d18c5de9a333db71390195debc7b01 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 9 Jun 2005 16:46:51 +0000 Subject: [PATCH] New whitespace normalization rule: no blank line at EOF. svn:r4378 --- contrib/checkSpace.pl | 3 +++ src/common/aes.c | 1 - src/common/aes.h | 1 - src/common/container.c | 1 - src/common/crypto.h | 1 - src/common/log.h | 1 - src/common/test.h | 1 - src/common/torint.h | 1 - src/common/tortls.c | 1 - src/common/tortls.h | 1 - src/or/circuitbuild.c | 1 - src/or/circuitlist.c | 1 - src/or/command.c | 1 - src/or/connection_edge.c | 1 - src/or/connection_or.c | 1 - src/or/cpuworker.c | 1 - src/or/directory.c | 1 - src/or/dns.c | 1 - src/or/hibernate.c | 1 - src/or/main.c | 1 - src/or/relay.c | 1 - src/or/rendclient.c | 1 - src/or/rendcommon.c | 1 - src/or/rendmid.c | 1 - src/or/rendservice.c | 1 - src/or/routerlist.c | 1 - src/or/tor_main.c | 1 - 27 files changed, 3 insertions(+), 26 deletions(-) diff --git a/contrib/checkSpace.pl b/contrib/checkSpace.pl index 8724250bc2..8b6fb828bf 100755 --- a/contrib/checkSpace.pl +++ b/contrib/checkSpace.pl @@ -75,5 +75,8 @@ for $fn (@ARGV) { } } } + if ($lastnil) { + print " EOL\@EOF:$fn:$.\n"; + } close(F); } diff --git a/src/common/aes.c b/src/common/aes.c index 1f7195cbc2..455563c8cd 100644 --- a/src/common/aes.c +++ b/src/common/aes.c @@ -812,4 +812,3 @@ void rijndaelEncrypt(const u32 rk[/*4*(Nr + 1)*/], int Nr, const u8 pt[16], u8 c rk[3]; PUTU32(ct + 12, s3); } - diff --git a/src/common/aes.h b/src/common/aes.h index 44e8b00910..693880a7cb 100644 --- a/src/common/aes.h +++ b/src/common/aes.h @@ -28,4 +28,3 @@ void aes_set_counter(aes_cnt_cipher_t *cipher, uint64_t counter); void aes_adjust_counter(aes_cnt_cipher_t *cipher, long delta); #endif - diff --git a/src/common/container.c b/src/common/container.c index f892cd6773..408b49f3d4 100644 --- a/src/common/container.c +++ b/src/common/container.c @@ -649,4 +649,3 @@ int strmap_isempty(strmap_t *map) { return SPLAY_EMPTY(&map->head); } - diff --git a/src/common/crypto.h b/src/common/crypto.h index 06245668cf..8fe50f9692 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -160,4 +160,3 @@ void secret_to_key(char *key_out, size_t key_out_len, const char *secret, size_t secret_len, const char *s2k_specifier); #endif - diff --git a/src/common/log.h b/src/common/log.h index bfcb557e6d..d64559ce83 100644 --- a/src/common/log.h +++ b/src/common/log.h @@ -99,4 +99,3 @@ void _log_fn(int severity, const char *format, ...); # define __LOG_H #endif - diff --git a/src/common/test.h b/src/common/test.h index ec613b2c42..957437cdf7 100644 --- a/src/common/test.h +++ b/src/common/test.h @@ -136,4 +136,3 @@ extern int have_failed; } STMT_END #endif - diff --git a/src/common/torint.h b/src/common/torint.h index 96464a29ad..cb6fff1a51 100644 --- a/src/common/torint.h +++ b/src/common/torint.h @@ -250,4 +250,3 @@ typedef uint32_t uintptr_t; #define SIZE_T_CEILING (sizeof(char)<<(sizeof(size_t)*8 - 1)) #endif /* __TORINT_H */ - diff --git a/src/common/tortls.c b/src/common/tortls.c index 900965b1e1..e6e13a0899 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -859,4 +859,3 @@ void _check_no_tls_errors(const char *fname, int line) fname, line); tls_log_errors(LOG_WARN, NULL); } - diff --git a/src/common/tortls.h b/src/common/tortls.h index 4d8aba264b..1703b95b62 100644 --- a/src/common/tortls.h +++ b/src/common/tortls.h @@ -51,4 +51,3 @@ unsigned long tor_tls_get_n_bytes_written(tor_tls *tls); void _check_no_tls_errors(const char *fname, int line); #endif - diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index d11ebd3123..c41fb0f0c9 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -1475,4 +1475,3 @@ onion_append_hop(crypt_path_t **head_ptr, routerinfo_t *choice) { return 0; } - diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index cc1c0e517c..18268fcccd 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -707,4 +707,3 @@ void assert_circuit_ok(const circuit_t *c) tor_assert(!c->rend_splice); } } - diff --git a/src/or/command.c b/src/or/command.c index 62b27d6616..eef5fc42cb 100644 --- a/src/or/command.c +++ b/src/or/command.c @@ -335,4 +335,3 @@ static void command_process_destroy_cell(cell_t *cell, connection_t *conn) { } } } - diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index c4a01f1392..68c73bdff9 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -1720,4 +1720,3 @@ failed: *s = '.'; return BAD_HOSTNAME; } - diff --git a/src/or/connection_or.c b/src/or/connection_or.c index 3d667f601e..b25a7805de 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -635,4 +635,3 @@ loop: goto loop; /* process the remainder of the buffer */ } - diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c index 2da8b99748..9405141392 100644 --- a/src/or/cpuworker.c +++ b/src/or/cpuworker.c @@ -430,4 +430,3 @@ int assign_to_cpuworker(connection_t *cpuworker, uint8_t question_type, } return 0; } - diff --git a/src/or/directory.c b/src/or/directory.c index 32ed70ab0d..f76f1f44a4 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -1190,4 +1190,3 @@ int connection_dir_finished_connecting(connection_t *conn) conn->state = DIR_CONN_STATE_CLIENT_SENDING; /* start flushing conn */ return 0; } - diff --git a/src/or/dns.c b/src/or/dns.c index d2bb017631..643405a0ce 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -877,4 +877,3 @@ static void spawn_enough_dnsworkers(void) { num_dnsworkers--; } } - diff --git a/src/or/hibernate.c b/src/or/hibernate.c index 1df81fdfd5..37418717f6 100644 --- a/src/or/hibernate.c +++ b/src/or/hibernate.c @@ -832,4 +832,3 @@ void consider_hibernation(time_t now) { } } } - diff --git a/src/or/main.c b/src/or/main.c index c967a69389..775913a7c5 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -1624,4 +1624,3 @@ int tor_main(int argc, char *argv[]) { tor_cleanup(); return -1; } - diff --git a/src/or/relay.c b/src/or/relay.c index 8732c658ce..701b47bb67 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -1211,4 +1211,3 @@ circuit_consider_sending_sendme(circuit_t *circ, crypt_path_t *layer_hint) } } } - diff --git a/src/or/rendclient.c b/src/or/rendclient.c index 8f23ddfcbc..d5f2f0297b 100644 --- a/src/or/rendclient.c +++ b/src/or/rendclient.c @@ -447,4 +447,3 @@ char *rend_client_get_random_intro(char *query) { smartlist_free(sl); return nickname; } - diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c index 3020663311..50ad154d01 100644 --- a/src/or/rendcommon.c +++ b/src/or/rendcommon.c @@ -358,4 +358,3 @@ void rend_process_relay_cell(circuit_t *circ, int command, size_t length, tor_assert(0); } } - diff --git a/src/or/rendmid.c b/src/or/rendmid.c index fe6935a8f9..d56c9b1aaa 100644 --- a/src/or/rendmid.c +++ b/src/or/rendmid.c @@ -289,4 +289,3 @@ rend_mid_rendezvous(circuit_t *circ, const char *request, size_t request_len) circuit_mark_for_close(circ); return -1; } - diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 9432440eb7..07728b3e5b 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -1028,4 +1028,3 @@ rend_service_set_connection_addr_port(connection_t *conn, circuit_t *circ) conn->port,serviceid); return -1; } - diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 44aa8123b4..9b05d86f38 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -1459,4 +1459,3 @@ void clear_trusted_dir_servers(void) trusted_dir_servers = smartlist_create(); } } - diff --git a/src/or/tor_main.c b/src/or/tor_main.c index 26c260c92c..97de6fbddf 100644 --- a/src/or/tor_main.c +++ b/src/or/tor_main.c @@ -18,4 +18,3 @@ int main(int argc, char *argv[]) { return tor_main(argc, argv); } -