From a3e3aac963a6542018167a8b90cd9f1637bb8a74 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 29 May 2009 15:10:28 -0700 Subject: [PATCH] Run Nindent on com32/modules/kbdmap.c Automatically reformat com32/modules/kbdmap.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin --- com32/modules/kbdmap.c | 58 +++++++++++++++++++++++++------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/com32/modules/kbdmap.c b/com32/modules/kbdmap.c index 7e36a35..f1c736d 100644 --- a/com32/modules/kbdmap.c +++ b/com32/modules/kbdmap.c @@ -18,37 +18,37 @@ static inline void error(const char *msg) { - fputs(msg, stderr); + fputs(msg, stderr); } int main(int argc, char *argv[]) { - const struct syslinux_keyboard_map * const kmap = syslinux_keyboard_map(); - size_t map_size; - void *kbdmap; - - openconsole(&dev_null_r, &dev_stdcon_w); - - if (argc != 2) { - error("Usage: kbdmap mapfile\n"); - return 1; - } - - if (kmap->version != 1) { - error("Syslinux core version mismatch\n"); - return 1; - } - - if (loadfile(argv[1], &kbdmap, &map_size)) { - error("Keyboard map file load error\n"); - return 1; - } - - if (map_size != kmap->length) { - error("Keyboard map file format error\n"); - return 1; - } - - memcpy(kmap->map, kbdmap, map_size); - return 0; + const struct syslinux_keyboard_map *const kmap = syslinux_keyboard_map(); + size_t map_size; + void *kbdmap; + + openconsole(&dev_null_r, &dev_stdcon_w); + + if (argc != 2) { + error("Usage: kbdmap mapfile\n"); + return 1; + } + + if (kmap->version != 1) { + error("Syslinux core version mismatch\n"); + return 1; + } + + if (loadfile(argv[1], &kbdmap, &map_size)) { + error("Keyboard map file load error\n"); + return 1; + } + + if (map_size != kmap->length) { + error("Keyboard map file format error\n"); + return 1; + } + + memcpy(kmap->map, kbdmap, map_size); + return 0; } -- 2.7.4