summaryrefslogtreecommitdiff
path: root/libutils/ProcessCallStack.cpp
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2015-04-25 14:10:03 -0700
committerNick Kralevich <nnk@google.com>2015-04-25 15:36:13 -0700
commiteedbe81f753fd19e5eb2238187c5618e9153bf55 (patch)
tree2fb2d3873af5cc7fae38b5b55261800358a8ca86 /libutils/ProcessCallStack.cpp
parent8929c77ab9aa9be612291809669e9162837c54ae (diff)
init: fix write_file checkreqprot logic error
write_file() returned -errno on error, not -1. Callers who check for -1 would falsely believe that the write was successful when it wasn't. Fixup write_file so that it return -1 on error consistent with other functions. Change-Id: Ic51aaf8678d8d97b2606bd171f11b3b11f642e39
Diffstat (limited to 'libutils/ProcessCallStack.cpp')
0 files changed, 0 insertions, 0 deletions