bugfix of error handling while open()
authorThomas Huehn <thomas@net.t-labs.tu-berlin.de>
Fri, 5 Jul 2013 10:04:14 +0000 (12:04 +0200)
committerJohn Crispin <blogic@openwrt.org>
Mon, 8 Jul 2013 09:00:36 +0000 (11:00 +0200)
commitcac289316bed4282f798dbe710398e6f53f66f1f
tree642f58f05da8db7634f0e6c09f08b7e6d454e174
parent3283d681f9da65b500ad0cb3d4550cb840ed481a
bugfix of error handling while open()

The normal return value from open() is a non-negative integer.
In the case of an error, a value of -1 is returned instead.

Signed-off-by: Thomas Huehn <thomas@net.t-labs.tu-berlin.de>
debug.c
inittab.c