Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3620)

Unified Diff: cgpt/cmd_find.c

Issue 5352005: Add 'prioritize' command to cgpt tool. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cgpt/cgpt_common.c ('k') | cgpt/cmd_prioritize.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cgpt/cmd_find.c
diff --git a/cgpt/cmd_find.c b/cgpt/cmd_find.c
index 055777e3410748b72a7b01e683243b42fed17ccf..896119a7cca778d5438e1939a2d3666a8b958a51 100644
--- a/cgpt/cmd_find.c
+++ b/cgpt/cmd_find.c
@@ -177,8 +177,8 @@ static int do_search(char *filename) {
continue;
int found = 0;
- if ((set_unique && !memcmp(&unique_guid, &entry->unique, sizeof(Guid))) ||
- (set_type && !memcmp(&type_guid, &entry->type, sizeof(Guid)))) {
+ if ((set_unique && GuidEqual(&unique_guid, &entry->unique)) ||
+ (set_type && GuidEqual(&type_guid, &entry->type))) {
found = 1;
} else if (set_label) {
if (CGPT_OK != UTF16ToUTF8(entry->name,
« no previous file with comments | « cgpt/cgpt_common.c ('k') | cgpt/cmd_prioritize.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698