dbe94c994e3a51be616149ac385e749802b3cee5
angie
  Tue Mar 22 11:07:08 2011 -0700
Replacing atoi with sqlUnsigned as suggested by Mark.
diff --git src/lib/tests/vcfParseTest.c src/lib/tests/vcfParseTest.c
index 050e5a9..7dd2474 100644
--- src/lib/tests/vcfParseTest.c
+++ src/lib/tests/vcfParseTest.c
@@ -1,20 +1,21 @@
 /* vcfParseTest - Parse VCF header and data lines in given position range.. */
 #include "common.h"
 #include "linefile.h"
 #include "hash.h"
 #include "options.h"
+#include "sqlNum.h"
 #include "vcf.h"
 
 static char const rcsid[] = "$Id: newProg.c,v 1.30 2010/03/24 21:18:33 hiram Exp $";
 
 void usage()
 /* Explain usage and exit. */
 {
 errAbort(
   "vcfParseTest - Parse VCF header and data lines in given position range.\n"
   "usage:\n"
   "   vcfParseTest fileOrUrl.vcf.gz seqName start end\n"
   "\n"
   "fileOrUrl.vcf.gz needs to have been compressed by tabix, and index file\n"
   "fileOrUrl.vcf.gz.tbi must exist.\n"
   );
@@ -42,18 +43,18 @@
     printf("%s\t%d\t%d\t%s:%s/%s\t%f\n",
 	   rec->chrom, rec->chromStart, rec->chromEnd,
 	   rec->name, rec->ref, rec->alt, rec->qual);
     rec = rec->next;
     i++;
     }
 vcfFileFree(&vcff);
 }
 
 int main(int argc, char *argv[])
 /* Process command line. */
 {
 optionInit(&argc, argv, options);
 if (argc != 5)
     usage();
-vcfParseTest(argv[1], argv[2], atoi(argv[3]), atoi(argv[4]));
+vcfParseTest(argv[1], argv[2], sqlUnsigned(argv[3]), sqlUnsigned(argv[4]));
 return 0;
 }