diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2017-10-18 17:22:40 +1100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-19 07:01:11 +0200 |
commit | 42f1b3762acf72032696e0817f81f4cb069a446e (patch) | |
tree | d307028f839a77f5a4027592172154614e279e4f /cpukit/include/libfdt_env.h | |
parent | Fix some errors in comments (diff) | |
download | rtems-42f1b3762acf72032696e0817f81f4cb069a446e.tar.bz2 |
libfdt: Remove leading underscores from identifiers
In a lot of places libfdt uses a leading _ character to mark an identifier
as "internal" (not part of the published libfdt API). This is a bad idea,
because identifiers with a leading _ are generally reserved by the C
library or system. It's particularly dangerous for libfdt, because it's
designed to be able to be integrated into lots of different environments.
In some cases the leading _ has no purpose, so we simply drop it. In most
cases we move it to the end, as our new convention for marking internal
identifiers.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'cpukit/include/libfdt_env.h')
-rw-r--r-- | cpukit/include/libfdt_env.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/include/libfdt_env.h b/cpukit/include/libfdt_env.h index 952056cddf..3605d93254 100644 --- a/cpukit/include/libfdt_env.h +++ b/cpukit/include/libfdt_env.h @@ -1,5 +1,5 @@ -#ifndef _LIBFDT_ENV_H -#define _LIBFDT_ENV_H +#ifndef LIBFDT_ENV_H +#define LIBFDT_ENV_H /* * libfdt - Flat Device Tree manipulation * Copyright (C) 2006 David Gibson, IBM Corporation. @@ -109,4 +109,4 @@ static inline fdt64_t cpu_to_fdt64(uint64_t x) #undef CPU_TO_FDT16 #undef EXTRACT_BYTE -#endif /* _LIBFDT_ENV_H */ +#endif /* LIBFDT_ENV_H */ |