[med-svn] samtools 09/26: Rearrange (so tags can see main_depth()) [minor]

Charles Plessy plessy at moszumanska.debian.org
Tue Dec 10 10:06:25 UTC 2013


This is an automated email from the git hooks/post-receive script.

plessy pushed a commit to branch debian/unstable
in repository samtools.

commit 6007ab1202e33c0071ec5e33d9f6078a55934399
Author: John Marshall <jm18 at sanger.ac.uk>
Date:   Tue Nov 26 14:20:34 2013 +0000

    Rearrange (so tags can see main_depth()) [minor]
---
 bam2depth.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/bam2depth.c b/bam2depth.c
index 6fd023a..393c245 100644
--- a/bam2depth.c
+++ b/bam2depth.c
@@ -34,11 +34,7 @@ static int read_bam(void *data, bam1_t *b) // read level filters better go here
 
 int read_file_list(const char *file_list,int *n,char **argv[]);
 
-#ifdef _MAIN_BAM2DEPTH
-int main(int argc, char *argv[])
-#else
 int main_depth(int argc, char *argv[])
-#endif
 {
 	int i, n, tid, beg, end, pos, *n_plp, baseQ = 0, mapQ = 0, min_len = 0, nfiles;
 	const bam_pileup1_t **plp;
@@ -141,3 +137,10 @@ int main_depth(int argc, char *argv[])
     }
 	return 0;
 }
+
+#ifdef _MAIN_BAM2DEPTH
+int main(int argc, char *argv[])
+{
+	return main_depth(argc, argv);
+}
+#endif

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/samtools.git



More information about the debian-med-commit mailing list