commit | c44909ded80bbc1bc0517043de668bd3a254a13f | [log] [tgz] |
---|---|---|
author | Enrico Granata <egranata@google.com> | Fri Jan 24 14:13:52 2020 -0800 |
committer | Enrico Granata <egranata@google.com> | Mon Feb 03 14:01:37 2020 -0800 |
tree | 79e6e7592270b623f643e67bd8ef3b585d6e5e42 | |
parent | 6154258cae5a3f57df687bb24f07c5402425d799 [diff] |
Centralize creation and error handling for VsockServerInfo Provide helper functions that create VsockServerInfo objects from either the command line or the property storage, and have them return optional instead of relying on default values. Also, avoid atoi() since it has the potential for undefined behavior. Test: build Change-Id: I0aab6b7d84e5084580e25217ac5ba4f5a1db6e2a