Apply consistent naming scheme for hostlib functions.
The chromeos-installer uses several functions from the vboot_reference
userspace library, but the names of those functions are inconsistent:
IsZero
MapFile
VbGetSystemPropertyString
cgpt_add
cgpt_boot
cgpt_create
cgpt_get_boot_partition_number
cgpt_get_num_non_empty_partitions
cgpt_get_partition_details
cgpt_prioritize
cgpt_set_attributes
find_kernel_config
The Google C++ style guide says types and functions should use CamelCase,
while variables use lower_case_with_underscores.
Kernel style (which vboot_reference tries to be more-or-less compatible
with) uses lower_case_with_underscores for everything, but that really only
has to apply to firmware stuff. For userspace, we can use the Google style.
BUG=chromium:221544
BRANCH=none
TEST=buildbot
CQ-DEPEND=CL:46045
Renaming/cleanup only; no functional changes.
Change-Id: I9c82c9ff8909be88586194c8ffdb435fc771195f
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/46044
diff --git a/cgpt/cmd_find.c b/cgpt/cmd_find.c
index 459c101..4b2964d 100644
--- a/cgpt/cmd_find.c
+++ b/cgpt/cmd_find.c
@@ -153,10 +153,10 @@
if (optind < argc) {
for (i=optind; i<argc; i++) {
params.drive_name = argv[i];
- cgpt_find(¶ms);
+ CgptFind(¶ms);
}
} else {
- cgpt_find(¶ms);
+ CgptFind(¶ms);
}
if (params.oneonly && params.hits != 1) {