cmenu: misc. cleanups
authorPierre-Alexandre Meyer <pierre@mouraf.org>
Mon, 31 Aug 2009 00:09:52 +0000 (17:09 -0700)
committerPierre-Alexandre Meyer <pierre@mouraf.org>
Tue, 1 Sep 2009 18:43:39 +0000 (11:43 -0700)
Fix a compiler warning and a header documentation.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
com32/cmenu/libmenu/com32io.c
com32/cmenu/libmenu/com32io.h

index f1ed17d..92344da 100644 (file)
 
 com32sys_t inreg, outreg;      // Global register sets for use
 
-static void cprint_vga2ansi(char chr, char attr)
+/**
+ * cprint_vga2ansi - given a VGA attribute, print a character
+ * @chr:       character to print
+ * @attr:      vga attribute
+ *
+ * Convert the VGA attribute @attr to an ANSI escape sequence and
+ * print it.
+ **/
+static void cprint_vga2ansi(const char chr, const char attr)
 {
        static const char ansi_char[8] = "04261537";
        static uint8_t last_attr = 0x07;
index 5459332..8fb3230 100644 (file)
 
 #define CSI "\e["
 
-/* Beep: "" are required, not '' */
-static inline beep()
+static inline void beep(void)
 {
-       return fputs("\007", stdout);
+       fputs("\007", stdout);
 }
 
 /* BIOS Assisted output routines */