src/hg/hgGenome/maf.c 1.2

1.2 2010/05/11 01:43:24 kent
Refactoring to split the trackDb.tableName field into separate track and table fields. Similarly track.mapName field goes to the same track and table fields.
Index: src/hg/hgGenome/maf.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgGenome/maf.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -b -B -U 1000000 -r1.1 -r1.2
--- src/hg/hgGenome/maf.c	5 Jun 2007 23:48:09 -0000	1.1
+++ src/hg/hgGenome/maf.c	11 May 2010 01:43:24 -0000	1.2
@@ -1,36 +1,36 @@
 /* maf - stuff to process maf tracks.  */
 
 #include "common.h"
 #include "hash.h"
 #include "linefile.h"
 #include "dystring.h"
 #include "portable.h"
 #include "obscure.h"
 #include "jksql.h"
 #include "cheapcgi.h"
 #include "cart.h"
 #include "web.h"
 #include "trackDb.h"
 #include "maf.h"
 #include "hgMaf.h"
 #include "hgGenome.h"
 
 static char const rcsid[] = "$Id$";
 
 boolean isMafTable(char *database, struct trackDb *track, char *table)
 /* Return TRUE if table is maf. */
 {
 char setting[128], *p = setting;
 
 if (track == NULL)
     return FALSE;
 safecpy(setting, sizeof setting, track->type);
 char *type = nextWord(&p);
 
 if (sameString(type, "maf") || sameString(type, "wigMaf"))
-    if (sameString(track->tableName, table))
+    if (sameString(track->table, table))
         return TRUE;
 return FALSE;
 }