Improve error handling in free_tid()
commit0cf5dbd40ff3a579208e47eb3260ebf54dfd996e
authorAlberto Bertogli <albertito@blitiri.com.ar>
Sun, 22 Feb 2009 06:20:25 +0000 (22 04:20 -0200)
committerAlberto Bertogli <albertito@blitiri.com.ar>
Sun, 22 Feb 2009 06:24:44 +0000 (22 04:24 -0200)
treeb5eaeb1e3ec125094055dbfef4906322b6c71b38
parent38e3f986fc53eaae2c9b5b617c52965d30c7e35e
Improve error handling in free_tid()

This patch improves free_tid()'s error handling by detecting when access()
fails with anything else but EACCES (which is expected) and leaving the
max untouched.

get_jtfile() can't fail, so it's not a problem either.

While at it, remove some unused assignments.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
trans.c