From d97f59c04fe0e183a66ad5b2f24a39a4b92f7f25 Mon Sep 17 00:00:00 2001 From: On behalf of Bob Handsaker Date: Wed, 7 Jan 2009 21:42:15 +0000 Subject: [PATCH] Fix problem with compiling without curses. --- bam_maqcns.c | 2 ++ bam_tview.c | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bam_maqcns.c b/bam_maqcns.c index c8009aa..65ed64c 100644 --- a/bam_maqcns.c +++ b/bam_maqcns.c @@ -15,6 +15,8 @@ typedef struct { uint32_t mapQ_max; } glf_call_aux_t; +char bam_nt16_nt4_table[] = { 4, 0, 1, 4, 2, 4, 4, 4, 3, 4, 4, 4, 4, 4, 4, 4 }; + /* P() = \theta \sum_{i=1}^{N-1} 1/i P(D|) = \sum_{k=1}^{N-1} p_k 1/2 [(k/N)^n_2(1-k/N)^n_1 + (k/N)^n1(1-k/N)^n_2] diff --git a/bam_tview.c b/bam_tview.c index 3dfb201..e71a386 100644 --- a/bam_tview.c +++ b/bam_tview.c @@ -31,8 +31,6 @@ typedef struct { char *ref; } tview_t; -char bam_nt16_nt4_table[] = { 4, 0, 1, 4, 2, 4, 4, 4, 3, 4, 4, 4, 4, 4, 4, 4 }; - int tv_pl_func(uint32_t tid, uint32_t pos, int n, const bam_pileup1_t *pl, void *data) { tview_t *tv = (tview_t*)data; @@ -176,7 +174,6 @@ int tv_fetch_func(const bam1_t *b, void *data) int tv_draw_aln(tview_t *tv, int tid, int pos) { - int end; // reset clear(); tv->curr_tid = tid; tv->left_pos = pos; -- 2.39.2