led_ctrl: error checking in a better shape
authorThomas Monjalon <thomas@monjalon.net>
Mon, 8 Nov 2010 10:45:58 +0000 (11:45 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 8 Nov 2010 13:06:06 +0000 (14:06 +0100)
commit56cb41b53de062dc9f597afa79711962b234f75e
tree290cb067989de1c6ec3a32719fae219df7753922
parent323b4046c3009226fe8b8d0fc539eb5d46b6fd60
led_ctrl: error checking in a better shape

Check in the form of an assert.
Do not check for real files (-e instead of -f): it allows links.
led_ctrl/led_ctrl