From 08318237636f16badf8fb81e0936766c7129515f Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 9 Jun 2005 19:03:31 +0000 Subject: Change end-of-file NLNL convention. It turns out arma I and I agree. svn:r4382 --- src/common/aes.c | 1 + src/common/aes.h | 1 + src/common/compat.c | 1 + src/common/compat.h | 1 + src/common/container.c | 1 + src/common/container.h | 1 + src/common/crypto.c | 1 + src/common/crypto.h | 1 + src/common/log.c | 1 + src/common/log.h | 1 + src/common/test.h | 1 + src/common/torgzip.c | 1 + src/common/torgzip.h | 1 + src/common/torint.h | 1 + src/common/tortls.c | 1 + src/common/tortls.h | 1 + src/common/util.c | 1 + src/common/util.h | 1 + src/or/buffers.c | 1 + src/or/circuitbuild.c | 1 + src/or/circuitlist.c | 1 + src/or/circuituse.c | 1 + src/or/command.c | 1 + src/or/config.c | 1 + src/or/connection.c | 1 + src/or/connection_edge.c | 1 + src/or/connection_or.c | 1 + src/or/control.c | 1 + src/or/cpuworker.c | 1 + src/or/directory.c | 1 + src/or/dirserv.c | 1 + src/or/dns.c | 1 + src/or/hibernate.c | 1 + src/or/main.c | 1 + src/or/onion.c | 1 + src/or/or.h | 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/rephist.c | 1 + src/or/router.c | 1 + src/or/routerlist.c | 1 + src/or/routerparse.c | 1 + src/or/test.c | 1 + src/or/tor_main.c | 1 + src/or/tree.h | 1 + 48 files changed, 48 insertions(+) (limited to 'src') diff --git a/src/common/aes.c b/src/common/aes.c index 455563c8cd..1f7195cbc2 100644 --- a/src/common/aes.c +++ b/src/common/aes.c @@ -812,3 +812,4 @@ 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 693880a7cb..44e8b00910 100644 --- a/src/common/aes.h +++ b/src/common/aes.h @@ -28,3 +28,4 @@ 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/compat.c b/src/common/compat.c index 8bdecfc7fb..4c46906a00 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -1031,3 +1031,4 @@ int network_init(void) #endif return 0; } + diff --git a/src/common/compat.h b/src/common/compat.h index 5dd5104e2a..8f44e93857 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -239,3 +239,4 @@ unsigned long tor_get_thread_id(void); #endif #endif + diff --git a/src/common/container.c b/src/common/container.c index 408b49f3d4..f892cd6773 100644 --- a/src/common/container.c +++ b/src/common/container.c @@ -649,3 +649,4 @@ int strmap_isempty(strmap_t *map) { return SPLAY_EMPTY(&map->head); } + diff --git a/src/common/container.h b/src/common/container.h index 60a13c5965..0b64a05e45 100644 --- a/src/common/container.h +++ b/src/common/container.h @@ -94,3 +94,4 @@ void strmap_iter_get(strmap_iter_t *iter, const char **keyp, void **valp); int strmap_iter_done(strmap_iter_t *iter); #endif + diff --git a/src/common/crypto.c b/src/common/crypto.c index ca50d877ae..d05d012694 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -1675,3 +1675,4 @@ setup_openssl_threading(void) { #else static int setup_openssl_threading(void) { return 0; } #endif + diff --git a/src/common/crypto.h b/src/common/crypto.h index 8fe50f9692..06245668cf 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -160,3 +160,4 @@ 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.c b/src/common/log.c index 6bcc75e3a9..e254eb0698 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -537,3 +537,4 @@ void suppress_libevent_log_msg(const char *msg) void configure_libevent_logging(void) {} void suppress_libevent_log_msg(const char *msg) {} #endif + diff --git a/src/common/log.h b/src/common/log.h index d64559ce83..bfcb557e6d 100644 --- a/src/common/log.h +++ b/src/common/log.h @@ -99,3 +99,4 @@ 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 957437cdf7..ec613b2c42 100644 --- a/src/common/test.h +++ b/src/common/test.h @@ -136,3 +136,4 @@ extern int have_failed; } STMT_END #endif + diff --git a/src/common/torgzip.c b/src/common/torgzip.c index 2fdcd453fe..b6753e8aca 100644 --- a/src/common/torgzip.c +++ b/src/common/torgzip.c @@ -245,3 +245,4 @@ int detect_compression_method(const char *in, size_t in_len) return 0; } } + diff --git a/src/common/torgzip.h b/src/common/torgzip.h index a52cc0fb40..94aeceb5c1 100644 --- a/src/common/torgzip.h +++ b/src/common/torgzip.h @@ -30,3 +30,4 @@ int is_gzip_supported(void); int detect_compression_method(const char *in, size_t in_len); #endif + diff --git a/src/common/torint.h b/src/common/torint.h index cb6fff1a51..96464a29ad 100644 --- a/src/common/torint.h +++ b/src/common/torint.h @@ -250,3 +250,4 @@ 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 e6e13a0899..900965b1e1 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -859,3 +859,4 @@ 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 1703b95b62..4d8aba264b 100644 --- a/src/common/tortls.h +++ b/src/common/tortls.h @@ -51,3 +51,4 @@ 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/common/util.c b/src/common/util.c index 943f912b47..a9441055df 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1443,3 +1443,4 @@ void write_pidfile(char *filename) { } #endif } + diff --git a/src/common/util.h b/src/common/util.h index 31196085c6..f6504abc7d 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -142,3 +142,4 @@ void finish_daemon(const char *desired_cwd); void write_pidfile(char *filename); #endif + diff --git a/src/or/buffers.c b/src/or/buffers.c index 310fd57724..f0943c2fa0 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -1093,3 +1093,4 @@ void assert_buf_ok(buf_t *buf) } #endif } + diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index c41fb0f0c9..d11ebd3123 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -1475,3 +1475,4 @@ 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 18268fcccd..cc1c0e517c 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -707,3 +707,4 @@ void assert_circuit_ok(const circuit_t *c) tor_assert(!c->rend_splice); } } + diff --git a/src/or/circuituse.c b/src/or/circuituse.c index 4743afbce2..defd0a25db 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -1140,3 +1140,4 @@ int connection_ap_handshake_attach_circuit(connection_t *conn) { return 0; } } + diff --git a/src/or/command.c b/src/or/command.c index eef5fc42cb..62b27d6616 100644 --- a/src/or/command.c +++ b/src/or/command.c @@ -335,3 +335,4 @@ static void command_process_destroy_cell(cell_t *cell, connection_t *conn) { } } } + diff --git a/src/or/config.c b/src/or/config.c index 66aa624e6e..d963a5c0de 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -2785,3 +2785,4 @@ print_cvs_version(void) puts(routerlist_c_id); puts(routerparse_c_id); } + diff --git a/src/or/connection.c b/src/or/connection.c index a87f27f8a8..40979f2ce2 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -1817,3 +1817,4 @@ void assert_connection_ok(connection_t *conn, time_t now) tor_assert(0); } } + diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 68c73bdff9..c4a01f1392 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -1720,3 +1720,4 @@ failed: *s = '.'; return BAD_HOSTNAME; } + diff --git a/src/or/connection_or.c b/src/or/connection_or.c index b25a7805de..3d667f601e 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -635,3 +635,4 @@ loop: goto loop; /* process the remainder of the buffer */ } + diff --git a/src/or/control.c b/src/or/control.c index 80ad6a33b3..6ea4608c01 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -1303,3 +1303,4 @@ init_cookie_authentication(int enabled) return 0; } + diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c index 9405141392..2da8b99748 100644 --- a/src/or/cpuworker.c +++ b/src/or/cpuworker.c @@ -430,3 +430,4 @@ 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 f76f1f44a4..32ed70ab0d 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -1190,3 +1190,4 @@ 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/dirserv.c b/src/or/dirserv.c index 94d18ae6d1..c8599bf759 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1043,3 +1043,4 @@ dirserv_free_all(void) memset(&cached_directory, 0, sizeof(cached_directory)); memset(&cached_runningrouters, 0, sizeof(cached_runningrouters)); } + diff --git a/src/or/dns.c b/src/or/dns.c index 643405a0ce..d2bb017631 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -877,3 +877,4 @@ static void spawn_enough_dnsworkers(void) { num_dnsworkers--; } } + diff --git a/src/or/hibernate.c b/src/or/hibernate.c index 37418717f6..1df81fdfd5 100644 --- a/src/or/hibernate.c +++ b/src/or/hibernate.c @@ -832,3 +832,4 @@ void consider_hibernation(time_t now) { } } } + diff --git a/src/or/main.c b/src/or/main.c index 775913a7c5..c967a69389 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -1624,3 +1624,4 @@ int tor_main(int argc, char *argv[]) { tor_cleanup(); return -1; } + diff --git a/src/or/onion.c b/src/or/onion.c index d51000198b..75409c3453 100644 --- a/src/or/onion.c +++ b/src/or/onion.c @@ -404,3 +404,4 @@ clear_pending_onions(void) ol_list = ol_tail = NULL; ol_length = 0; } + diff --git a/src/or/or.h b/src/or/or.h index f55f837731..dbd4eef2eb 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1887,3 +1887,4 @@ int tor_version_compare(tor_version_t *a, tor_version_t *b); void assert_addr_policy_ok(addr_policy_t *t); #endif + diff --git a/src/or/relay.c b/src/or/relay.c index 701b47bb67..8732c658ce 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -1211,3 +1211,4 @@ 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 d5f2f0297b..8f23ddfcbc 100644 --- a/src/or/rendclient.c +++ b/src/or/rendclient.c @@ -447,3 +447,4 @@ 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 50ad154d01..3020663311 100644 --- a/src/or/rendcommon.c +++ b/src/or/rendcommon.c @@ -358,3 +358,4 @@ 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 d56c9b1aaa..fe6935a8f9 100644 --- a/src/or/rendmid.c +++ b/src/or/rendmid.c @@ -289,3 +289,4 @@ 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 07728b3e5b..9432440eb7 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -1028,3 +1028,4 @@ rend_service_set_connection_addr_port(connection_t *conn, circuit_t *circ) conn->port,serviceid); return -1; } + diff --git a/src/or/rephist.c b/src/or/rephist.c index 7df81e6121..ccdbe39327 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -758,3 +758,4 @@ void rep_hist_free_all(void) tor_free(write_array); predicted_ports_free(); } + diff --git a/src/or/router.c b/src/or/router.c index 1f67e5bd56..32f6e5af9a 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -970,3 +970,4 @@ void router_free_all_keys(void) if (desc_routerinfo) routerinfo_free(desc_routerinfo); } + diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 9b05d86f38..44aa8123b4 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -1459,3 +1459,4 @@ void clear_trusted_dir_servers(void) trusted_dir_servers = smartlist_create(); } } + diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 881c5009fc..535c88d8db 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -1631,3 +1631,4 @@ tor_version_same_series(tor_version_t *a, tor_version_t *b) (a->minor == b->minor) && (a->micro == b->micro)); } + diff --git a/src/or/test.c b/src/or/test.c index c41cf98742..7d31b4e053 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -1463,3 +1463,4 @@ main(int c, char**v) { else return 0; } + diff --git a/src/or/tor_main.c b/src/or/tor_main.c index 97de6fbddf..26c260c92c 100644 --- a/src/or/tor_main.c +++ b/src/or/tor_main.c @@ -18,3 +18,4 @@ int main(int argc, char *argv[]) { return tor_main(argc, argv); } + diff --git a/src/or/tree.h b/src/or/tree.h index 7b4f6a0eea..6863bb7a41 100644 --- a/src/or/tree.h +++ b/src/or/tree.h @@ -675,3 +675,4 @@ name##_RB_MINMAX(struct name *head, int val) \ (x) = name##_RB_NEXT(head, x)) #endif /* _SYS_TREE_H_ */ + -- cgit v1.2.3-54-g00ecf