src/reformat/gbtofa/gbtofa.c 1.4
1.4 2009/09/23 18:42:29 angie
Fixed compiler warnings from gcc 4.3.3, mostly about system calls whose return values weren't checked and non-literal format strings with no args.
Index: src/reformat/gbtofa/gbtofa.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/reformat/gbtofa/gbtofa.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -b -B -U 4 -r1.3 -r1.4
--- src/reformat/gbtofa/gbtofa.c 31 Oct 2006 19:18:24 -0000 1.3
+++ src/reformat/gbtofa/gbtofa.c 23 Sep 2009 18:42:29 -0000 1.4
@@ -115,9 +115,9 @@
}
}
if (gotKohara)
{
- fgets(definitionLine, sizeof(definitionLine), in);
+ mustGetLine(in, definitionLine, sizeof(definitionLine));
definitionWordCount = chopLine(definitionLine, definitionWords);
if (definitionWordCount >= 3 && sameString(definitionWords[0], "clone") &&
definitionWords[1][0] == 'y' && definitionWords[1][1] == 'k' &&
(definitionWords[2][0] == '3' || definitionWords[2][0] == '5') )