[SLOF] [PATCH] Fix bad header guard in version.h

Alexey Kardashevskiy aik at ozlabs.ru
Tue Jun 15 16:29:17 AEST 2021



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 at 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;
> 

-- 
Alexey


More information about the SLOF mailing list