Tidy up image search & forking code
commit11ae14d738865c298f1f40035a052fca1caed177
authorPhilip Allison <sane@not.co.uk>
Sat, 3 May 2008 12:57:28 +0000 (3 13:57 +0100)
committerPhilip Allison <sane@not.co.uk>
Sat, 3 May 2008 12:57:28 +0000 (3 13:57 +0100)
tree15ca7d71c34213c12cd90999861cbc3cdb3fdf1c
parentd11d45f19fff4ff8e9fe0d9e5efcf06f71f8f9da
Tidy up image search & forking code

Move extension-appending code into a separate function, so as
not to clutter main() so much.  Also, create a macro for the
EINTR ignoring loops, to reduce duplication in the forking
code.

Signed-off-by: Philip Allison <sane@not.co.uk>
src/cteddy.cxx