#include <time.h> /* for time() */
#include <unistd.h> /* for getopt(), optarg */
#include <stdint.h> /* for uint32_t */
-#include "windows.h" /* for structs WinMeta, Win, init_win_meta(), draw_all_wins()
+#include "windows.h" /* for structs WinMeta, Win, init_win_meta(),
+ * draw_all_wins()
*/
-#include "readwrite.h" /* for read_uint32_bigendian](), write_uint32_bigendian(),
- * try_fopen(), try_fclose(), try_fclose_unlink_rename()
+#include "readwrite.h" /* for read_uint32_bigendian](),
+ * write_uint32_bigendian(), try_fopen(), try_fclose(),
+ * try_fclose_unlink_rename()
*/
#include "map_objects.h" /* for structs MapObj Player, init_map_object_defs(),
* build_map_objects()
}
linemax = linemax + 6; /* + 6 = + 3 digits + whitespace + \n + \0 */
- char keyb_line[linemax];
+ char kb_line[linemax];
kb_p = wc->kb.kbs;
while (0 != kb_p)
{
- snprintf(keyb_line, linemax, "%d %s\n", kb_p->key, kb_p->name);
- try_fwrite(keyb_line, sizeof(char), strlen(keyb_line), file, world, f_name);
+ snprintf(kb_line, linemax, "%d %s\n", kb_p->key, kb_p->name);
+ try_fwrite(kb_line, sizeof(char), strlen(kb_line), file, world, f_name);
kb_p = kb_p->next;
}