Browse Source

Remove CVS version tags, they did not work anymore after moving to git

master
Dirk Engling 7 months ago
parent
commit
d3985b00b5
  1. 4
      Makefile
  2. 2
      opentracker.c
  3. 2
      ot_accesslist.c
  4. 2
      ot_clean.c
  5. 1
      ot_fullscrape.c
  6. 2
      ot_http.c
  7. 2
      ot_iovec.c
  8. 1
      ot_livesync.c
  9. 2
      ot_mutex.c
  10. 2
      ot_rijndael.c
  11. 16
      ot_stats.c
  12. 3
      ot_stats.h
  13. 2
      ot_sync.c
  14. 2
      ot_udp.c
  15. 2
      ot_vector.c
  16. 2
      scan_urlencoded_query.c
  17. 2
      trackerlogic.c

4
Makefile

@ -49,10 +49,12 @@ FEATURES+=-DWANT_FULLSCRAPE @@ -49,10 +49,12 @@ FEATURES+=-DWANT_FULLSCRAPE
#FEATURES+=-D_DEBUG_HTTPERROR
#FEATURES+=-D_DEBUG_RANDOMTORRENTS
GIT_VERSION=$(shell sh -c 'command -v git >/dev/null && test -d .git && git rev-parse HEAD || echo _git_or_commit_not_found_')
OPTS_debug=-D_DEBUG -g -ggdb # -pg -fprofile-arcs -ftest-coverage
OPTS_production=-O3
CFLAGS+=-I$(LIBOWFAT_HEADERS) -Wall -pipe -pthread -Wextra #-ansi -pedantic
CFLAGS+=-I$(LIBOWFAT_HEADERS) -DGIT_VERSION=$(GIT_VERSION) -Wall -pipe -pthread -Wextra #-ansi -pedantic
LDFLAGS+=-L$(LIBOWFAT_LIBRARY) -lowfat -pthread -lz
#LDFLAGS+=-lbsd

2
opentracker.c

@ -806,5 +806,3 @@ int main(int argc, char **argv) { @@ -806,5 +806,3 @@ int main(int argc, char **argv) {
return 0;
}
const char *g_version_opentracker_c = "$Source$: $Revision$\n";

2
ot_accesslist.c

@ -559,5 +559,3 @@ int accesslist_is_blessed(ot_ip6 ip, ot_permissions permissions) { @@ -559,5 +559,3 @@ int accesslist_is_blessed(ot_ip6 ip, ot_permissions permissions) {
return 1;
return 0;
}
const char *g_version_accesslist_c = "$Source$: $Revision$\n";

2
ot_clean.c

@ -142,5 +142,3 @@ static pthread_t thread_id; @@ -142,5 +142,3 @@ static pthread_t thread_id;
void clean_init(void) { pthread_create(&thread_id, NULL, clean_worker, NULL); }
void clean_deinit(void) { pthread_cancel(thread_id); }
const char *g_version_clean_c = "$Source$: $Revision$\n";

1
ot_fullscrape.c

@ -313,4 +313,3 @@ static void fullscrape_make_gzip(int taskid, ot_tasktype mode) { @@ -313,4 +313,3 @@ static void fullscrape_make_gzip(int taskid, ot_tasktype mode) {
/* WANT_FULLSCRAPE */
#endif
const char *g_version_fullscrape_c = "$Source$: $Revision$\n";

2
ot_http.c

@ -760,5 +760,3 @@ ssize_t http_handle_request(const int64 sock, struct ot_workstruct *ws) { @@ -760,5 +760,3 @@ ssize_t http_handle_request(const int64 sock, struct ot_workstruct *ws) {
http_senddata(sock, ws);
return ws->reply_size;
}
const char *g_version_http_c = "$Source$: $Revision$\n";

2
ot_iovec.c

@ -90,5 +90,3 @@ size_t iovec_length(const int *iovec_entries, const struct iovec **iovector) { @@ -90,5 +90,3 @@ size_t iovec_length(const int *iovec_entries, const struct iovec **iovector) {
length += ((*iovector)[i]).iov_len;
return length;
}
const char *g_version_iovec_c = "$Source$: $Revision$\n";

1
ot_livesync.c

@ -237,4 +237,3 @@ static void *livesync_worker(void *args) { @@ -237,4 +237,3 @@ static void *livesync_worker(void *args) {
}
#endif
const char *g_version_livesync_c = "$Source$: $Revision$\n";

2
ot_mutex.c

@ -270,5 +270,3 @@ void mutex_deinit() { @@ -270,5 +270,3 @@ void mutex_deinit() {
pthread_cond_destroy(&tasklist_being_filled);
byte_zero(all_torrents, sizeof(all_torrents));
}
const char *g_version_mutex_c = "$Source$: $Revision$\n";

2
ot_rijndael.c

@ -486,5 +486,3 @@ void rijndaelEncrypt128(const uint32_t rk[44], const uint8_t pt[16], uint8_t ct[ @@ -486,5 +486,3 @@ void rijndaelEncrypt128(const uint32_t rk[44], const uint8_t pt[16], uint8_t ct[
rk[43];
PUTU32(ct + 12, s3);
}
const char *g_version_rijndael_c = "$Source$: $Revision$\n";

16
ot_stats.c

@ -519,9 +519,7 @@ static size_t stats_return_everything(char *reply) { @@ -519,9 +519,7 @@ static size_t stats_return_everything(char *reply) {
r += sprintf(r, " <connections>\n");
r += sprintf(r, " <tcp>\n <accept>%llu</accept>\n <announce>%llu</announce>\n <scrape>%llu</scrape>\n </tcp>\n",
ot_overall_tcp_connections, ot_overall_tcp_successfulannounces, ot_overall_tcp_successfulscrapes);
r += sprintf(
r,
" <udp>\n <overall>%llu</overall>\n <connect>%llu</connect>\n <announce>%llu</announce>\n <scrape>%llu</scrape>\n <missmatch>%llu</missmatch>\n </udp>\n",
r += sprintf(r, " <udp>\n <overall>%llu</overall>\n <connect>%llu</connect>\n <announce>%llu</announce>\n <scrape>%llu</scrape>\n <missmatch>%llu</missmatch>\n </udp>\n",
ot_overall_udp_connections, ot_overall_udp_connects, ot_overall_udp_successfulannounces, ot_overall_udp_successfulscrapes,
ot_overall_udp_connectionidmissmatches);
r += sprintf(r, " <livesync>\n <count>%llu</count>\n </livesync>\n", ot_overall_sync_count);
@ -541,14 +539,10 @@ static size_t stats_return_everything(char *reply) { @@ -541,14 +539,10 @@ static size_t stats_return_everything(char *reply) {
return r - reply;
}
extern const char *g_version_opentracker_c, *g_version_accesslist_c, *g_version_clean_c, *g_version_fullscrape_c, *g_version_http_c, *g_version_iovec_c,
*g_version_mutex_c, *g_version_stats_c, *g_version_udp_c, *g_version_vector_c, *g_version_scan_urlencoded_query_c, *g_version_trackerlogic_c,
*g_version_livesync_c, *g_version_rijndael_c;
size_t stats_return_tracker_version(char *reply) {
return sprintf(reply, "%s%s%s%s%s%s%s%s%s%s%s%s%s%s", g_version_opentracker_c, g_version_accesslist_c, g_version_clean_c, g_version_fullscrape_c,
g_version_http_c, g_version_iovec_c, g_version_mutex_c, g_version_stats_c, g_version_udp_c, g_version_vector_c,
g_version_scan_urlencoded_query_c, g_version_trackerlogic_c, g_version_livesync_c, g_version_rijndael_c);
#define QUOTE(name) #name
#define SQUOTE(name) QUOTE(name)
return sprintf(reply, "https://erdgeist.org/gitweb/opentracker/commit/?id=" SQUOTE(GIT_VERSION) "\n");
}
size_t return_stats_for_tracker(char *reply, int mode, int format) {
@ -775,5 +769,3 @@ void stats_init() { @@ -775,5 +769,3 @@ void stats_init() {
void stats_deinit() {
pthread_cancel(thread_id);
}
const char *g_version_stats_c = "$Source$: $Revision$\n";

3
ot_stats.h

@ -48,7 +48,4 @@ size_t stats_return_tracker_version(char *reply); @@ -48,7 +48,4 @@ size_t stats_return_tracker_version(char *reply);
void stats_init(void);
void stats_deinit(void);
extern const char *g_version_rijndael_c;
extern const char *g_version_livesync_c;
#endif

2
ot_sync.c

@ -170,5 +170,3 @@ void sync_deliver( int64 socket ) { @@ -170,5 +170,3 @@ void sync_deliver( int64 socket ) {
}
#endif
const char *g_version_sync_c = "$Source$: $Revision$\n";

2
ot_udp.c

@ -234,5 +234,3 @@ void udp_init(int64 sock, unsigned int worker_count) { @@ -234,5 +234,3 @@ void udp_init(int64 sock, unsigned int worker_count) {
while (worker_count--)
pthread_create(&thread_id, NULL, udp_worker, (void *)sock);
}
const char *g_version_udp_c = "$Source$: $Revision$\n";

2
ot_vector.c

@ -282,5 +282,3 @@ void vector_fixup_peers(ot_vector *vector, size_t peer_size) { @@ -282,5 +282,3 @@ void vector_fixup_peers(ot_vector *vector, size_t peer_size) {
if (need_fix)
vector->data = realloc(vector->data, vector->space * peer_size);
}
const char *g_version_vector_c = "$Source$: $Revision$\n";

2
scan_urlencoded_query.c

@ -162,5 +162,3 @@ ssize_t scan_fixed_int(char *data, size_t len, int *tmp) { @@ -162,5 +162,3 @@ ssize_t scan_fixed_int(char *data, size_t len, int *tmp) {
*tmp = -*tmp;
return len;
}
const char *g_version_scan_urlencoded_query_c = "$Source$: $Revision$\n";

2
trackerlogic.c

@ -596,5 +596,3 @@ void trackerlogic_deinit(void) { @@ -596,5 +596,3 @@ void trackerlogic_deinit(void) {
/* Release mutexes */
mutex_deinit();
}
const char *g_version_trackerlogic_c = "$Source$: $Revision$\n";

Loading…
Cancel
Save