e5ac1a0de5861fc97fb1732be627b64244051d21 galt Tue Aug 11 11:02:30 2015 -0700 cleaning up commented lines from unused vars diff --git src/hg/lib/sqlProg.c src/hg/lib/sqlProg.c index 0868ca3..a79a0ac 100644 --- src/hg/lib/sqlProg.c +++ src/hg/lib/sqlProg.c @@ -90,32 +90,30 @@ } int sqlMakeDefaultsFile(char* defaultFileName, char* profile, char* group) /* Create a temporary file in the supplied directory to be passed to * mysql with --defaults-file. Writes a mysql options set for * the mysql group [group] with the profile.host, profile.user, and * profile.password values returned from cfgVal(). If group is not * client or mysql, a --defaults-group-suffix=group must be passed to * mysql to actually invoke the settings. * passFileName cannot be static, and the last 6 characters must * be XXXXXX. Those characters will be modified to form a unique suffix. * Returns a file descriptor for the file or dies with an error */ { int fileNo; char paddedGroup [256]; /* string with brackets around the group name */ -//char fileData[256]; /* constructed variable=value data for the mysql config file */ -//char field[256]; /* constructed profile.field name to pass to cfgVal */ char path[1024]; if ((fileNo=mkstemp(defaultFileName)) == -1) errAbort("Could not create unique temporary file %s", defaultFileName); tempFileNameToRemove = defaultFileName; /* pick up the global and local defaults * -- the order matters: later settings over-ride earlier ones. */ safef(path, sizeof path, "/etc/my.cnf"); copyCnfToDefaultsFile(path, defaultFileName, fileNo); safef(path, sizeof path, "/etc/mysql/my.cnf"); copyCnfToDefaultsFile(path, defaultFileName, fileNo);