From 49951297d20fdecc05e659e9c857cb7dd19551e6 Mon Sep 17 00:00:00 2001 From: Jose Luis Duran Date: Fri, 25 Feb 2022 11:03:55 -0300 Subject: [PATCH] libefivar: Clean up source files 1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Adapted according to FreeBSD-update instructions, with the sole purpose of reducing the differences with upstream sources. Obtained from: https://github.com/tianocore/edk2/commit/9095d37b8fe5bfc3d02adad6ba7fd7359ebc0107 Pull Request: https://github.com/freebsd/freebsd-src/pull/581 --- lib/libefivar/efivar-dp-format.c | 1 - lib/libefivar/efivar-dp-parse.c | 1 - lib/libefivar/uefi-dplib.h | 5 ++--- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/libefivar/efivar-dp-format.c b/lib/libefivar/efivar-dp-format.c index bc21ba54a09..2256a2013ad 100644 --- a/lib/libefivar/efivar-dp-format.c +++ b/lib/libefivar/efivar-dp-format.c @@ -50,7 +50,6 @@ __FBSDID("$FreeBSD$"); /* * Taken from MdePkg/Library/UefiDevicePathLib/DevicePathToText.c - * hash a11928f3310518ab1c6fd34e8d0fdbb72de9602c 2017-Mar-01 * heavily modified: * wide strings converted to narrow * Low level printing code redone for narrow strings diff --git a/lib/libefivar/efivar-dp-parse.c b/lib/libefivar/efivar-dp-parse.c index 5d5d0dfb7ba..82e003b9822 100644 --- a/lib/libefivar/efivar-dp-parse.c +++ b/lib/libefivar/efivar-dp-parse.c @@ -58,7 +58,6 @@ __FBSDID("$FreeBSD$"); /* * Taken from MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c - * hash a11928f3310518ab1c6fd34e8d0fdbb72de9602c 2017-Mar-01 */ /** @file diff --git a/lib/libefivar/uefi-dplib.h b/lib/libefivar/uefi-dplib.h index 10f14508669..097b78ff0d6 100644 --- a/lib/libefivar/uefi-dplib.h +++ b/lib/libefivar/uefi-dplib.h @@ -27,13 +27,12 @@ /* * Taken from MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.h - * hash a11928f3310518ab1c6fd34e8d0fdbb72de9602c 2017-Mar-01 */ /** @file Definition for Device Path library. -Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.
+Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -549,7 +548,7 @@ static inline void * AllocateCopyPool(size_t l, const void *p) { void *rv; - + rv = malloc(l); if (rv == NULL) return NULL;