CVSROOT: /cvs Module name: src Changes by: schwa...@cvs.openbsd.org 2014/05/09 17:56:26
Modified files: games/cribbage : io.c Log message: 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@