5b8c4168d4807c729fc8b1f199d9eb03c9411069 galt Thu Mar 3 18:40:54 2016 -0800 Replacing simple literal NOSQLINJ in string with the #define NOSQLINJ. This is slightly better because the compiler can catch a mis-spelling of the NOSQLINJ keyword. This was suggested by Angie. diff --git src/hg/synMap/createSlamParaSpec.c src/hg/synMap/createSlamParaSpec.c index 0a10e88..c2f4fe1 100644 --- src/hg/synMap/createSlamParaSpec.c +++ src/hg/synMap/createSlamParaSpec.c @@ -27,31 +27,31 @@ { char buff[512]; if(strstr(chrom, "chr") != NULL) snprintf(buff, sizeof(buff), "%s:%u-%u", chrom, start, end); else snprintf(buff, sizeof(buff), "chr%s:%u-%u", chrom, start, end); return cloneString(buff); } void makeSubDirs(char *db) /* create a subdir for each chrom in database */ { struct sqlConnection *conn = NULL; struct sqlResult *sr = NULL; char **row; -char *query = "NOSQLINJ select chrom from chromInfo"; +char *query = NOSQLINJ "select chrom from chromInfo"; hSetDb(db); conn = hAllocConn(); sr = sqlGetResult(conn, query); while((row = sqlNextRow(sr)) != NULL) { mkdir(row[0], 1); chmod(row[0],0777); } mkdir("log", 1); chmod("log",0777); sqlFreeResult(&sr); hFreeConn(&conn); }