Various cleanup in incard():
authorschwarze <schwarze@openbsd.org>
Fri, 9 May 2014 23:56:26 +0000 (23:56 +0000)
committerschwarze <schwarze@openbsd.org>
Fri, 9 May 2014 23:56:26 +0000 (23:56 +0000)
commit2bd4d2271d932f34338229322885a829784101bb
treedab0a338a387f8a2db4c27218b8a5e1d861f0ce8
parente94b4bde53af0a2be95d8c634dcd8117f8e59e23
Various cleanup in incard():
* get_line() always returns the same non-NULL pointer,
so testing the return value is useless.
* Garbage collect the unused variable *line.
* Check for end-of-buffer before parsing the next word instead of after it.
* Skip strlen() when the length has been measured three lines before anyway.
* Do not initialize local variables over and over again.
feedback and ok pjanzen@
games/cribbage/io.c