diff mbox series

Fix bad header guard in version.h

Message ID 20210527100537.331798-1-thuth@redhat.com
State Accepted
Headers show
Series Fix bad header guard in version.h | expand

Commit Message

Thomas Huth May 27, 2021, 10:05 a.m. UTC
The #define in version.h does not match the #ifndef in the line before
due to a typo in the suffix ("_F" instead of "_H"). Fix it, and while
we're at it, also remove the underscore at the beginning to avoid that
we're using an identifier here that is reserved by the C standard.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 board-qemu/include/version.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Alexey Kardashevskiy June 15, 2021, 6:29 a.m. UTC | #1
On 5/27/21 20:05, Thomas Huth wrote:
> The #define in version.h does not match the #ifndef in the line before
> due to a typo in the suffix ("_F" instead of "_H"). Fix it, and while
> we're at it, also remove the underscore at the beginning to avoid that
> we're using an identifier here that is reserved by the C standard.
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>

Thanks, applied.

> ---
>   board-qemu/include/version.h | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/board-qemu/include/version.h b/board-qemu/include/version.h
> index 036d2b5..3beb21d 100644
> --- a/board-qemu/include/version.h
> +++ b/board-qemu/include/version.h
> @@ -10,8 +10,8 @@
>    *     IBM Corporation - initial implementation
>    *****************************************************************************/
>   
> -#ifndef _SLOF_VERSION_H
> -#define _SLOF_VERSION_F
> +#ifndef SLOF_VERSION_H
> +#define SLOF_VERSION_H
>   
>   /* slof/version.S */
>   extern long print_version;
>
diff mbox series

Patch

diff --git a/board-qemu/include/version.h b/board-qemu/include/version.h
index 036d2b5..3beb21d 100644
--- a/board-qemu/include/version.h
+++ b/board-qemu/include/version.h
@@ -10,8 +10,8 @@ 
  *     IBM Corporation - initial implementation
  *****************************************************************************/
 
-#ifndef _SLOF_VERSION_H
-#define _SLOF_VERSION_F
+#ifndef SLOF_VERSION_H
+#define SLOF_VERSION_H
 
 /* slof/version.S */
 extern long print_version;