aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:28 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:28 -0700
commita3e3aac963a6542018167a8b90cd9f1637bb8a74 (patch)
tree702b8ebd488353a91b4e97cc169dcac7df7b1802
parent799a33601e712001c46c1c213c47c6836d27a5f7 (diff)
downloadsyslinux.git-a3e3aac963a6542018167a8b90cd9f1637bb8a74.tar.gz
syslinux.git-a3e3aac963a6542018167a8b90cd9f1637bb8a74.tar.xz
syslinux.git-a3e3aac963a6542018167a8b90cd9f1637bb8a74.zip
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 <hpa@zytor.com>
-rw-r--r--com32/modules/kbdmap.c58
1 files changed, 29 insertions, 29 deletions
diff --git a/com32/modules/kbdmap.c b/com32/modules/kbdmap.c
index 7e36a35d..f1c736d5 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;
}