summaryrefslogtreecommitdiff
path: root/libinstaller
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:33 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:33 -0700
commit3b2474e0ae8a1161cf751b5cb3066519037e4be8 (patch)
treebed32d6af89bf08fa5f7332ad1498649411c9588 /libinstaller
parent583a9c965626bb7e298bfce2a75f8db9329a19bb (diff)
downloadsyslinux-3b2474e0ae8a1161cf751b5cb3066519037e4be8.tar.gz
Run Nindent on libinstaller/syslxint.h
Automatically reformat libinstaller/syslxint.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'libinstaller')
-rw-r--r--libinstaller/syslxint.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/libinstaller/syslxint.h b/libinstaller/syslxint.h
index 120026de..208d78ca 100644
--- a/libinstaller/syslxint.h
+++ b/libinstaller/syslxint.h
@@ -20,51 +20,51 @@
*/
static inline uint8_t get_8(const unsigned char *p)
{
- return *(const uint8_t *)p;
+ return *(const uint8_t *)p;
}
static inline uint16_t get_16(const unsigned char *p)
{
#if defined(__i386__) || defined(__x86_64__)
- /* Littleendian and unaligned-capable */
- return *(const uint16_t *)p;
+ /* Littleendian and unaligned-capable */
+ return *(const uint16_t *)p;
#else
- return (uint16_t)p[0] + ((uint16_t)p[1] << 8);
+ return (uint16_t) p[0] + ((uint16_t) p[1] << 8);
#endif
}
static inline uint32_t get_32(const unsigned char *p)
{
#if defined(__i386__) || defined(__x86_64__)
- /* Littleendian and unaligned-capable */
- return *(const uint32_t *)p;
+ /* Littleendian and unaligned-capable */
+ return *(const uint32_t *)p;
#else
- return (uint32_t)p[0] + ((uint32_t)p[1] << 8) +
- ((uint32_t)p[2] << 16) + ((uint32_t)p[3] << 24);
+ return (uint32_t) p[0] + ((uint32_t) p[1] << 8) +
+ ((uint32_t) p[2] << 16) + ((uint32_t) p[3] << 24);
#endif
}
static inline void set_16(unsigned char *p, uint16_t v)
{
#if defined(__i386__) || defined(__x86_64__)
- /* Littleendian and unaligned-capable */
- *(uint16_t *)p = v;
+ /* Littleendian and unaligned-capable */
+ *(uint16_t *) p = v;
#else
- p[0] = (v & 0xff);
- p[1] = ((v >> 8) & 0xff);
+ p[0] = (v & 0xff);
+ p[1] = ((v >> 8) & 0xff);
#endif
}
static inline void set_32(unsigned char *p, uint32_t v)
{
#if defined(__i386__) || defined(__x86_64__)
- /* Littleendian and unaligned-capable */
- *(uint32_t *)p = v;
+ /* Littleendian and unaligned-capable */
+ *(uint32_t *) p = v;
#else
- p[0] = (v & 0xff);
- p[1] = ((v >> 8) & 0xff);
- p[2] = ((v >> 16) & 0xff);
- p[3] = ((v >> 24) & 0xff);
+ p[0] = (v & 0xff);
+ p[1] = ((v >> 8) & 0xff);
+ p[2] = ((v >> 16) & 0xff);
+ p[3] = ((v >> 24) & 0xff);
#endif
}