22d1b7b1d2e0f48aee47675a9622e920dacadb0f
galt
  Fri Jan 5 18:13:02 2018 -0800
Fixing compile errors and encoding consistency, even though this code is obsolete.

diff --git src/hg/hgCert/hgCert.c src/hg/hgCert/hgCert.c
index 380aee6..a6e42aa 100644
--- src/hg/hgCert/hgCert.c
+++ src/hg/hgCert/hgCert.c
@@ -23,88 +23,84 @@
 
     result = strstr(line, lineType);
     if (result == NULL)
 	{
 	return(result);
 	}
     else
 	{
 	result = result + strlen(lineType);
 	return(result);
 	}
     }
 
 char *doLine2(char *lineIn, char *lineType)
     {
-    char *result;
     char *chp;
     char line[1000];
 
     strcpy(line, lineIn);
 
     *(line+strlen(line) - 1) = '\0';
     chp  = strstr(line, ":");
 
     if (chp == NULL) return(strdup("???"));
 
     *chp = '\0';
     chp ++;
     chp ++;
 
     chp = strdup(chp);
     strcpy(lineType, line);
     if (strcmp(chp, " ") == 0) chp = strdup("&nbsp");
     return(chp);
     }
 
 int main(int argc, char *argv[])
 {
-char **p;
-char *arg0, *infileName;
+char *infileName;
 
 FILE *inf, *outf;
-char line[1000], line2[1000];
+char line[1000];
 
-char *id;
-char *chp;
 
 char *content;
 char *contact="";
 
 char *join;
 
 char *join1, *join2;
 char *spanner,
  *variation,
  *variationEvidence,
  *comment,
  *evaluation,
  *remark;
 char lineType[100];
 
 //int i,j;
 
 if (argc != 2)
     {
     usage();
     }
 else
     {
     infileName = argv[1];
 
     fprintf(stdout, "<HTML><HEAD><TITLE>Non-standard Join Certificates</TITLE>\n");
-    fprintf(stdout, "<META http-equiv=Content-Type content=\"text/html; charset=windows-1252\">\n");
+    fprintf(stdout, "<META http-equiv=Content-Type content=\"text/html; charset=iso-8859-1\">\n");
     fprintf(stdout, "<META content=\"MSHTML 6.00.2800.1106\" name=GENERATOR></HEAD>\n");
     fprintf(stdout, "<BODY><span style='font-family:Arial;'>\n");
 
     fprintf(stdout, "<TABLE cellspacing=3 cols=9 border cellPadding=2\n");
 
     fprintf(stdout, "  <TR BGCOLOR='#FFFEE8'><TH>Accession 1</TH>\n");
     fprintf(stdout, "  <TH>Accession 2</TH>\n");
     fprintf(stdout, "  <TH>Spanner</TH>\n");
     fprintf(stdout, "  <TH>Variation</TH>\n");
     fprintf(stdout, "  <TH>Variation Evidence</TH>\n");
     fprintf(stdout, "  <TH>Comment</TH>\n");
     fprintf(stdout, "  <TH>Evaluation</TH>\n");
     fprintf(stdout, "  <TH>Remark</TH>\n");
     fprintf(stdout, "  <TH>Contact</TH>\n");
     fprintf(stdout, "  </TR>\n");