summaryrefslogtreecommitdiff
path: root/libsparse/sparse.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2020-08-06 14:49:51 -0700
committerTom Cherry <tomcherry@google.com>2020-08-07 09:48:16 -0700
commit94b299ab43386c41d3d0102ab43efca1d4fc3230 (patch)
tree296152f7a3535ae90a7e4110ad66216b82c66982 /libsparse/sparse.cpp
parentca0a46aefa4f0498f7186613c728ce97877eed9d (diff)
logd: consolidate command handling and fix an error check
Consolidate command handling for commands that take a buffer ID as their first argument. Further use ParseUint instead of atoi(), since atoi("bad string") returns `0` is the same as LOG_ID_MAIN. Test: these commands are handled property Test: `echo -n 'getLogSize ignoreme!\0' | nc -U /dev/socket/logd` returns an error Change-Id: I3e84a6157e16f4c110681da453e1ae1a920da7c4
Diffstat (limited to 'libsparse/sparse.cpp')
0 files changed, 0 insertions, 0 deletions