Run Nindent on com32/modules/kbdmap.c
authorH. Peter Anvin <hpa@zytor.com>
Fri, 29 May 2009 22:10:28 +0000 (15:10 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 29 May 2009 22:10:28 +0000 (15:10 -0700)
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 <hpa@zytor.com>
com32/modules/kbdmap.c

index 7e36a35..f1c736d 100644 (file)
 
 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;
 }