summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-29 22:25:31 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-29 22:25:31 +0000
commit7fbd2975326eb5d2816a303b621942a72b5d57ca (patch)
tree4c71039adc3d62cda441915aa4c678d5ea659d4b
parentaff512268563c7c9b0d675a85c7c03bb3ca628ad (diff)
downloadtor-7fbd2975326eb5d2816a303b621942a72b5d57ca.tar.gz
tor-7fbd2975326eb5d2816a303b621942a72b5d57ca.zip
Suggestion from weasel: Make tor --version --version dump the cvs Id of every file.
svn:r3019
-rw-r--r--src/common/aes.c1
-rw-r--r--src/common/aes.h1
-rw-r--r--src/common/compat.c1
-rw-r--r--src/common/compat.h1
-rw-r--r--src/common/container.c1
-rw-r--r--src/common/container.h1
-rw-r--r--src/common/crypto.c1
-rw-r--r--src/common/crypto.h1
-rw-r--r--src/common/fakepoll.c1
-rw-r--r--src/common/fakepoll.h1
-rw-r--r--src/common/log.c1
-rw-r--r--src/common/log.h6
-rw-r--r--src/common/test.h1
-rw-r--r--src/common/torgzip.c1
-rw-r--r--src/common/torgzip.h1
-rw-r--r--src/common/torint.h1
-rw-r--r--src/common/tortls.c1
-rw-r--r--src/common/tortls.h1
-rw-r--r--src/common/util.c1
-rw-r--r--src/common/util.h1
-rw-r--r--src/or/buffers.c1
-rw-r--r--src/or/circuitbuild.c1
-rw-r--r--src/or/circuitlist.c1
-rw-r--r--src/or/circuituse.c1
-rw-r--r--src/or/command.c1
-rw-r--r--src/or/config.c94
-rw-r--r--src/or/connection.c1
-rw-r--r--src/or/connection_edge.c1
-rw-r--r--src/or/connection_or.c1
-rw-r--r--src/or/control.c1
-rw-r--r--src/or/cpuworker.c1
-rw-r--r--src/or/directory.c3
-rw-r--r--src/or/dirserv.c1
-rw-r--r--src/or/dns.c1
-rw-r--r--src/or/hibernate.c1
-rw-r--r--src/or/main.c1
-rw-r--r--src/or/onion.c1
-rw-r--r--src/or/or.h1
-rw-r--r--src/or/relay.c1
-rw-r--r--src/or/rendclient.c1
-rw-r--r--src/or/rendcommon.c1
-rw-r--r--src/or/rendmid.c1
-rw-r--r--src/or/rendservice.c1
-rw-r--r--src/or/rephist.c1
-rw-r--r--src/or/router.c1
-rw-r--r--src/or/routerlist.c1
-rw-r--r--src/or/routerparse.c1
-rw-r--r--src/or/test.c1
-rw-r--r--src/or/tor_main.c1
49 files changed, 142 insertions, 7 deletions
diff --git a/src/common/aes.c b/src/common/aes.c
index f6f4a12336..5ec6fb3c2e 100644
--- a/src/common/aes.c
+++ b/src/common/aes.c
@@ -1,6 +1,7 @@
/* Copyright 2001,2002,2003 Roger Dingledine, Matej Pfajfar. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char aes_c_id[] = "$Id$";
/**
* \file aes.c
diff --git a/src/common/aes.h b/src/common/aes.h
index 790fb44382..bd046cf096 100644
--- a/src/common/aes.h
+++ b/src/common/aes.h
@@ -6,6 +6,7 @@
#ifndef __AES_H
#define __AES_H
+#define AES_H_ID "$Id$"
/**
* \file aes.h
diff --git a/src/common/compat.c b/src/common/compat.c
index da2b8a143d..528f0beed0 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -1,6 +1,7 @@
/* Copyright 2003-2004 Roger Dingledine; Copyright 2004 Nick Mathewson */
/* See LICENSE for licensing information */
/* $Id$ */
+const char compat_c_id[] = "$Id$";
/* This is required on rh7 to make strptime not complain.
*/
diff --git a/src/common/compat.h b/src/common/compat.h
index a7ab4c9c7b..6b718c2f53 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -4,6 +4,7 @@
#ifndef __COMPAT_H
#define __COMPAT_H
+#define COMPAT_H_ID "$Id$"
#include "orconfig.h"
#include "torint.h"
diff --git a/src/common/container.c b/src/common/container.c
index 5ced2b6ff8..a13b20b1ce 100644
--- a/src/common/container.c
+++ b/src/common/container.c
@@ -1,6 +1,7 @@
/* Copyright 2003-2004 Roger Dingledine; Copyright 2004 Nick Mathewson */
/* See LICENSE for licensing information */
/* $Id$ */
+const char container_c_id[] = "$Id$";
#include "compat.h"
#include "util.h"
diff --git a/src/common/container.h b/src/common/container.h
index aab568d4a9..9cd7bf289d 100644
--- a/src/common/container.h
+++ b/src/common/container.h
@@ -4,6 +4,7 @@
#ifndef __CONTAINER_H
#define __CONTAINER_H
+#define CONTAINER_H_ID "$Id$"
/** Generic resizeable array. */
typedef struct smartlist_t smartlist_t;
diff --git a/src/common/crypto.c b/src/common/crypto.c
index 650aad4879..25366883ca 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -1,6 +1,7 @@
/* Copyright 2001,2002,2003 Roger Dingledine, Matej Pfajfar. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char crypto_c_id[] = "$Id$";
/**
* \file crypto.c
diff --git a/src/common/crypto.h b/src/common/crypto.h
index 5fc8625210..eb3998505f 100644
--- a/src/common/crypto.h
+++ b/src/common/crypto.h
@@ -10,6 +10,7 @@
#ifndef __CRYPTO_H
#define __CRYPTO_H
+#define CRYPTO_H_ID "$Id$"
#include <stdio.h>
diff --git a/src/common/fakepoll.c b/src/common/fakepoll.c
index fb375f1e91..712f2bd365 100644
--- a/src/common/fakepoll.c
+++ b/src/common/fakepoll.c
@@ -1,6 +1,7 @@
/* Copyright 2002,2003 Nick Mathewson, Roger Dingledine */
/* See LICENSE for licensing information */
/* $Id$ */
+const char fakepoll_c_id[] = "$Id$";
/**
* \file fakepoll.c
diff --git a/src/common/fakepoll.h b/src/common/fakepoll.h
index c8632bb7be..44fc63d858 100644
--- a/src/common/fakepoll.h
+++ b/src/common/fakepoll.h
@@ -4,6 +4,7 @@
#ifndef __FAKEPOLL_H
#define __FAKEPOLL_H
+#define FAKEPOLL_H_ID "$Id$"
/**
* \file fakepoll.h
diff --git a/src/common/log.c b/src/common/log.c
index 06d333b41a..4e5a69f1a6 100644
--- a/src/common/log.c
+++ b/src/common/log.c
@@ -1,6 +1,7 @@
/* Copyright 2001,2002,2003 Roger Dingledine, Matej Pfajfar. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char log_c_id[] = "$Id$";
/**
* \file log.c
diff --git a/src/common/log.h b/src/common/log.h
index 07e865e689..6ee13cbfda 100644
--- a/src/common/log.h
+++ b/src/common/log.h
@@ -9,11 +9,7 @@
**/
#ifndef __LOG_H
-
-/**
- * \file log.h
- * \brief Headers for log.c
- */
+#define LOG_H_ID "$Id$"
#include "../common/compat.h"
diff --git a/src/common/test.h b/src/common/test.h
index 84ea1f9127..083d00eae9 100644
--- a/src/common/test.h
+++ b/src/common/test.h
@@ -4,6 +4,7 @@
#ifndef __TEST_H
#define __TEST_H
+#define TEST_H_ID "$Id$"
/**
* \file test.h
diff --git a/src/common/torgzip.c b/src/common/torgzip.c
index 0e781cca6f..12af332b70 100644
--- a/src/common/torgzip.c
+++ b/src/common/torgzip.c
@@ -1,6 +1,7 @@
/* Copyright 2004 Roger Dingledine */
/* See LICENSE for licensing information */
/* $Id$ */
+const char torgzip_c_id[] = "$Id$";
/**
* \file torgzip.c
diff --git a/src/common/torgzip.h b/src/common/torgzip.h
index 4a7c205788..a023cd0c2d 100644
--- a/src/common/torgzip.h
+++ b/src/common/torgzip.h
@@ -9,6 +9,7 @@
#ifndef __TORGZIP_H
#define __TORGZIP_H
+#define TORGZIP_H_ID "$Id$"
typedef enum { GZIP_METHOD=1, ZLIB_METHOD=2 } compress_method_t;
diff --git a/src/common/torint.h b/src/common/torint.h
index eef6bee2ef..af2775a8cb 100644
--- a/src/common/torint.h
+++ b/src/common/torint.h
@@ -9,6 +9,7 @@
#ifndef __TORINT_H
#define __TORINT_H
+#define TORINT_H_ID "$Id$"
#include "orconfig.h"
diff --git a/src/common/tortls.c b/src/common/tortls.c
index 4068805fd4..01d5b58795 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -1,6 +1,7 @@
/* Copyright 2003 Roger Dingledine. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char tortls_c_id[] = "$Id$";
/**
* \file tortls.c
diff --git a/src/common/tortls.h b/src/common/tortls.h
index d8fcb9e090..7c6248e8a6 100644
--- a/src/common/tortls.h
+++ b/src/common/tortls.h
@@ -4,6 +4,7 @@
#ifndef _TORTLS_H
#define _TORTLS_H
+#define TORTLS_H_ID "$Id$"
/**
* \file tortls.h
diff --git a/src/common/util.c b/src/common/util.c
index f8eb3019a9..f007188e34 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -1,6 +1,7 @@
/* Copyright 2003 Roger Dingledine */
/* See LICENSE for licensing information */
/* $Id$ */
+const char util_c_id[] = "$Id$";
/**
* \file util.c
diff --git a/src/common/util.h b/src/common/util.h
index 977425db57..5b08fc855f 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -9,6 +9,7 @@
#ifndef __UTIL_H
#define __UTIL_H
+#define UTIL_H_ID "$Id$"
#include "orconfig.h"
#include "torint.h"
diff --git a/src/or/buffers.c b/src/or/buffers.c
index feac6d0439..3bdd7982ed 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -3,6 +3,7 @@
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char buffers_c_id[] = "$Id$";
/**
* \file buffers.c
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 10c7bf0d3e..65ffc3b364 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -3,6 +3,7 @@
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char circuitbuild_c_id[] = "$Id$";
/**
* \file circuitbuild.c
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index ac7a810da8..11c7be3e80 100644
--- a/src/or/circuitlist.c
+++ b/src/or/circuitlist.c
@@ -3,6 +3,7 @@
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char circuitlist_c_id[] = "$Id$";
/**
* \file circuitlist.c
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index 1c753ec54a..702a50b2fe 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -3,6 +3,7 @@
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char circuituse_c_id[] = "$Id$";
/**
* \file circuituse.c
diff --git a/src/or/command.c b/src/or/command.c
index 27d556d017..0e1e6f207f 100644
--- a/src/or/command.c
+++ b/src/or/command.c
@@ -3,6 +3,7 @@
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char command_c_id[] = "$Id$";
/**
* \file command.c
diff --git a/src/or/config.c b/src/or/config.c
index ff0797d8ec..18ce5d39e1 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -3,6 +3,7 @@
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char config_c_id[] = "$Id$";
/**
* /file config.c
@@ -15,6 +16,7 @@
#ifdef MS_WINDOWS
#include <shlobj.h>
#endif
+#include "../common/aes.h"
/** Enumeration of types which option values can take */
typedef enum config_type_t {
@@ -193,6 +195,7 @@ static int write_configuration_file(const char *fname, or_options_t *options);
static uint64_t config_parse_memunit(const char *s, int *ok);
static int config_parse_interval(const char *s, int *ok);
+static void print_cvs_version(void);
/*
* Functions to read and write the global options pointer.
@@ -1578,6 +1581,9 @@ init_from_config(int argc, char **argv)
if (argc > 1 && (!strcmp(argv[1],"--version"))) {
printf("Tor version %s.\n",VERSION);
+ if (argc > 2 && (!strcmp(argv[2],"--version"))) {
+ print_cvs_version();
+ }
exit(0);
}
@@ -2334,3 +2340,91 @@ config_parse_interval(const char *s, int *ok) {
return (int)r;
}
+static void
+print_cvs_version(void)
+{
+ extern const char aes_c_id[];
+ extern const char compat_c_id[];
+ extern const char container_c_id[];
+ extern const char crypto_c_id[];
+ extern const char fakepoll_c_id[];
+ extern const char log_c_id[];
+ extern const char torgzip_c_id[];
+ extern const char tortls_c_id[];
+ extern const char util_c_id[];
+
+ extern const char buffers_c_id[];
+ extern const char circuitbuild_c_id[];
+ extern const char circuitlist_c_id[];
+ extern const char circuituse_c_id[];
+ extern const char command_c_id[];
+ extern const char config_c_id[];
+ extern const char connection_c_id[];
+ extern const char connection_edge_c_id[];
+ extern const char connection_or_c_id[];
+ extern const char control_c_id[];
+ extern const char cpuworker_c_id[];
+ extern const char directory_c_id[];
+ extern const char dirserv_c_id[];
+ extern const char dns_c_id[];
+ extern const char hibernate_c_id[];
+ extern const char main_c_id[];
+ extern const char onion_c_id[];
+ extern const char relay_c_id[];
+ extern const char rendclient_c_id[];
+ extern const char rendcommon_c_id[];
+ extern const char rendmid_c_id[];
+ extern const char rendservice_c_id[];
+ extern const char rephist_c_id[];
+ extern const char router_c_id[];
+ extern const char routerlist_c_id[];
+ extern const char routerparse_c_id[];
+
+ puts(AES_H_ID);
+ puts(COMPAT_H_ID);
+ puts(CONTAINER_H_ID);
+ puts(CRYPTO_H_ID);
+ puts(FAKEPOLL_H_ID);
+ puts(LOG_H_ID);
+ puts(TORGZIP_H_ID);
+ puts(TORINT_H_ID);
+ puts(TORTLS_H_ID);
+ puts(UTIL_H_ID);
+ puts(aes_c_id);
+ puts(compat_c_id);
+ puts(container_c_id);
+ puts(crypto_c_id);
+ puts(fakepoll_c_id);
+ puts(log_c_id);
+ puts(torgzip_c_id);
+ puts(tortls_c_id);
+ puts(util_c_id);
+
+ puts(OR_H_ID);
+ puts(buffers_c_id);
+ puts(circuitbuild_c_id);
+ puts(circuitlist_c_id);
+ puts(circuituse_c_id);
+ puts(command_c_id);
+ puts(config_c_id);
+ puts(connection_c_id);
+ puts(connection_edge_c_id);
+ puts(connection_or_c_id);
+ puts(control_c_id);
+ puts(cpuworker_c_id);
+ puts(directory_c_id);
+ puts(dirserv_c_id);
+ puts(dns_c_id);
+ puts(hibernate_c_id);
+ puts(main_c_id);
+ puts(onion_c_id);
+ puts(relay_c_id);
+ puts(rendclient_c_id);
+ puts(rendcommon_c_id);
+ puts(rendmid_c_id);
+ puts(rendservice_c_id);
+ puts(rephist_c_id);
+ puts(router_c_id);
+ puts(routerlist_c_id);
+ puts(routerparse_c_id);
+}
diff --git a/src/or/connection.c b/src/or/connection.c
index 4c893692a7..ab5197cf23 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -3,6 +3,7 @@
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char connection_c_id[] = "$Id$";
/**
* \file connection.c
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 2c2111251b..e92b9f0968 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -3,6 +3,7 @@
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char connection_edge_c_id[] = "$Id$";
/**
* \file connection_edge.c
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index 719cf20c8d..4770f5d317 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -3,6 +3,7 @@
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char connection_or_c_id[] = "$Id$";
/**
* \file connection_or.c
diff --git a/src/or/control.c b/src/or/control.c
index e8da7e3b18..38d80b8a5e 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -1,6 +1,7 @@
/* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char control_c_id[] = "$Id$";
/**
* /file control.c
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c
index c91665c1ef..dbe0f74a3e 100644
--- a/src/or/cpuworker.c
+++ b/src/or/cpuworker.c
@@ -2,6 +2,7 @@
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char cpuworker_c_id[] = "$Id$";
/**
* \file cpuworker.c
diff --git a/src/or/directory.c b/src/or/directory.c
index 441798e24c..0492f9190a 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -1,9 +1,8 @@
/* Copyright 2001-2004 Roger Dingledine.
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
-
-/* See LICENSE for licensing information */
/* $Id$ */
+const char directory_c_id[] = "$Id$";
#include "or.h"
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index f49df40ff8..c3aa0b9699 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -2,6 +2,7 @@
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char dirserv_c_id[] = "$Id$";
#include "or.h"
diff --git a/src/or/dns.c b/src/or/dns.c
index 2991dcd722..7fb7f6b503 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -2,6 +2,7 @@
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char dns_c_id[] = "$Id$";
/**
* \file dns.c
diff --git a/src/or/hibernate.c b/src/or/hibernate.c
index 582b0d450d..c14db675e0 100644
--- a/src/or/hibernate.c
+++ b/src/or/hibernate.c
@@ -1,6 +1,7 @@
/* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char hibernate_c_id[] = "$Id$";
/**
* \file hibernate.c
diff --git a/src/or/main.c b/src/or/main.c
index 8c7cef4133..a594a23c1a 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -3,6 +3,7 @@
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char main_c_id[] = "$Id$";
/**
* \file main.c
diff --git a/src/or/onion.c b/src/or/onion.c
index a5abf3a9a9..9e40ca579b 100644
--- a/src/or/onion.c
+++ b/src/or/onion.c
@@ -3,6 +3,7 @@
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char onion_c_id[] = "$Id$";
/**
* \file onion.c
diff --git a/src/or/or.h b/src/or/or.h
index 1d725065f3..87fab798cd 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -12,6 +12,7 @@
#ifndef __OR_H
#define __OR_H
+#define OR_H_ID "$Id$"
#include "orconfig.h"
#ifdef MS_WINDOWS
diff --git a/src/or/relay.c b/src/or/relay.c
index fd77a92f6c..39b6369939 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -3,6 +3,7 @@
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char relay_c_id[] = "$Id$";
/**
* \file relay.c
diff --git a/src/or/rendclient.c b/src/or/rendclient.c
index c4fe53fb7f..53689ad037 100644
--- a/src/or/rendclient.c
+++ b/src/or/rendclient.c
@@ -1,6 +1,7 @@
/* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char rendclient_c_id[] = "$Id$";
/**
* \file rendclient.c
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c
index a50262ecce..7b47667bc5 100644
--- a/src/or/rendcommon.c
+++ b/src/or/rendcommon.c
@@ -1,6 +1,7 @@
/* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char rendcommon_c_id[] = "$Id$";
/**
* \file rendcommon.c
diff --git a/src/or/rendmid.c b/src/or/rendmid.c
index f37e19e53d..f8bc5005a5 100644
--- a/src/or/rendmid.c
+++ b/src/or/rendmid.c
@@ -1,6 +1,7 @@
/* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char rendmid_c_id[] = "$Id$";
/**
* \file rendmid.c
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index 000e23563d..d9ec3f5741 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -1,6 +1,7 @@
/* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char rendservice_c_id[] = "$Id$";
/**
* \file rendservice.c
diff --git a/src/or/rephist.c b/src/or/rephist.c
index 97ef823e08..769f6439f8 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -1,6 +1,7 @@
/* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char rephist_c_id[] = "$Id$";
/**
* \file rephist.c
diff --git a/src/or/router.c b/src/or/router.c
index e10b2658d9..74f1473f7f 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -3,6 +3,7 @@
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char router_c_id[] = "$Id$";
#include "or.h"
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 2520a49888..4fdaaf51b9 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -3,6 +3,7 @@
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char routerlist_c_id[] = "$Id$";
#include "or.h"
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 8b0e590aa9..21d69cbbb2 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -3,6 +3,7 @@
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char routerparse_c_id[] = "$Id$";
/**
* \file routerparse.c
diff --git a/src/or/test.c b/src/or/test.c
index ac98b589f9..e1e89c75b6 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -2,6 +2,7 @@
* Copyright 2004 Roger Dingledine, Nick Mathewson. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char test_c_id[] = "$Id$";
#include <stdio.h>
#ifdef HAVE_FCNTL_H
diff --git a/src/or/tor_main.c b/src/or/tor_main.c
index bcdfbc40e2..0b44625315 100644
--- a/src/or/tor_main.c
+++ b/src/or/tor_main.c
@@ -1,6 +1,7 @@
/* Copyright 2001-2004 Roger Dingledine. */
/* See LICENSE for licensing information */
/* $Id$ */
+const char tor_main_c_id[] = "$Id$";
/**
* \file tor_main.c