aboutsummaryrefslogtreecommitdiffstats
path: root/com32/modules/kbdmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/modules/kbdmap.c')
-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;
}