Skip to content

Commit

Permalink
OpenNetworkBoot: Uncrustify
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebeaton committed Aug 12, 2024
1 parent eb65ffc commit bb608d9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Library/OcMainLib/OpenCoreUefiUnloadDrivers.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ ProcessAllDrivers (
(VOID **)&LoadedImage
);
if (!EFI_ERROR (Status)) {
Name = GetStringNameFromHandle (HandleBuffer[Index], NULL); ///< Do not free this one.
Name = GetStringNameFromHandle (HandleBuffer[Index], NULL); ///< Do not free this one.
if (Name != NULL) {
ProcessImage (Context, Name, HandleBuffer[Index]);
}
Expand Down
2 changes: 1 addition & 1 deletion Platform/OpenNetworkBoot/BmBoot.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ BmExpandLoadFiles (
if (ValidateHttp) {
gBS->CloseEvent (NotifyEvent);

if ((Node != NULL) && !UriWasValidated()){
if ((Node != NULL) && !UriWasValidated ()) {
DEBUG ((DEBUG_ERROR, "NTBT: LoadFile returned value but URI was never validated\n"));
FreePool (Node);
return NULL;
Expand Down
3 changes: 2 additions & 1 deletion Platform/OpenNetworkBoot/HttpBootCallback.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
OC_DMG_LOADING_SUPPORT gDmgLoading;

STATIC EFI_HTTP_BOOT_CALLBACK mOriginalHttpBootCallback;
STATIC BOOLEAN mUriValidated;
STATIC BOOLEAN mUriValidated;

//
// Abort if we are loading a .dmg and these are banned, or if underlying drivers have
Expand Down Expand Up @@ -124,6 +124,7 @@ OpenNetworkBootHttpBootCallback (
if (EFI_ERROR (Status)) {
return Status;
}

mUriValidated = TRUE;
}
}
Expand Down
4 changes: 2 additions & 2 deletions Platform/OpenNetworkBoot/OpenNetworkBoot.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ InternalAddEntry (
PickerEntry->Flavour = IsIPv4 ? OC_FLAVOUR_PXE_BOOT4 : OC_FLAVOUR_PXE_BOOT6;
}

PickerEntry->TextMode = TRUE;
PickerEntry->Auxiliary = mAuxEntries;
PickerEntry->TextMode = TRUE;
PickerEntry->Auxiliary = mAuxEntries;

return EFI_SUCCESS;
}
Expand Down

0 comments on commit bb608d9

Please sign in to comment.