From 12fd24e056d18e9f7ee8e1e47a42e47c843c98ff Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Wed, 11 Sep 2013 09:43:33 -0400 Subject: move declarations to top, make sure to use the appropriate type --- kmer_frequency_per_sequence.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'kmer_frequency_per_sequence.c') diff --git a/kmer_frequency_per_sequence.c b/kmer_frequency_per_sequence.c index e876d57..7171193 100644 --- a/kmer_frequency_per_sequence.c +++ b/kmer_frequency_per_sequence.c @@ -14,9 +14,10 @@ int main(int argc, char **argv) { long kmer = 6; size_t len = 0; ssize_t read; + unsigned long width = 0; if(argc != 3) { - printf("Please supply a filename, and only a filename\n"); + printf("Please supply a filename and a kmer\n"); exit(EXIT_FAILURE); } @@ -26,8 +27,8 @@ int main(int argc, char **argv) { exit(EXIT_FAILURE); } + width = (int)pow(4, kmer); - int width = (int)pow(4, kmer); while ((read = getline(&line, &len, fh)) != -1) { if(line[0] != '>') { -- cgit v1.2.1