d90f7fb5e4c32a447387691539145045c609b5b9
kent
  Thu Apr 25 09:34:50 2013 -0700
Removing useless shuffleCount parameter from shuffleList, shuffleArrayOfChars and shuffleArrayOfPointers functions in response to code review feedback.
diff --git src/utils/shuffleLines/shuffleLines.c src/utils/shuffleLines/shuffleLines.c
index 3de45df..e6905c1 100644
--- src/utils/shuffleLines/shuffleLines.c
+++ src/utils/shuffleLines/shuffleLines.c
@@ -1,50 +1,50 @@
 /* shuffleLines - Create a version of file with lines shuffled.. */
 #include "common.h"
 #include "linefile.h"
 #include "hash.h"
 #include "options.h"
 #include "obscure.h"
 
 
 void usage()
 /* Explain usage and exit. */
 {
 errAbort(
   "shuffleLines - Create a version of file with lines shuffled.\n"
   "usage:\n"
   "   shuffleLines input output\n"
   "options:\n"
   "   -xxx=XXX\n"
   );
 }
 
 static struct optionSpec options[] = {
    {NULL, 0},
 };
 
 void shuffleLines(char *in, char *out)
 /* shuffleLines - Create a version of file with lines shuffled.. */
 {
 struct lineFile *lf = lineFileOpen(in, TRUE);
 FILE *f = mustOpen(out, "w");
 struct slName *list = NULL, *el;
 char *line;
 
 while (lineFileNext(lf, &line, NULL))
     slNameAddHead(&list, line);
-shuffleList(&list, 1);
+shuffleList(&list);
 for (el = list; el != NULL; el = el->next)
     fprintf(f, "%s\n", el->name);
 carefulClose(&f);
 }
 
 int main(int argc, char *argv[])
 /* Process command line. */
 {
 optionInit(&argc, argv, options);
 if (argc != 3)
     usage();
 srand(time(NULL));
 shuffleLines(argv[1], argv[2]);
 return 0;
 }