hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/user/hexview.c
diff options
context:
space:
mode:
Diffstat (limited to 'user/hexview.c')
-rw-r--r--user/hexview.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/user/hexview.c b/user/hexview.c
index 5eac27c..5d21711 100644
--- a/user/hexview.c
+++ b/user/hexview.c
@@ -5,7 +5,7 @@ static const char HEX[] = "0123456789abcdef";
static void put_hex8(unsigned char byte)
{
char digits[2] = { HEX[byte >> 4], HEX[byte & 15] };
- sys_write(1, digits, 2);
+ (void)sys_write(1, digits, 2);
}
static void put_hex32(unsigned long value)
@@ -13,7 +13,7 @@ static void put_hex32(unsigned long value)
char digits[8];
for (int nibble = 0; nibble < 8; nibble++)
digits[nibble] = HEX[(value >> ((7 - nibble) * 4)) & 15];
- sys_write(1, digits, 8);
+ (void)sys_write(1, digits, 8);
}
#define PAGE 256
@@ -32,7 +32,7 @@ void _start(const char* arg, unsigned long arglen)
else
{
put("hexview, type a filename\nfile: ");
- read_line(name, 64);
+ (void)read_line(name, 64);
put("\n");
}
@@ -67,7 +67,7 @@ void _start(const char* arg, unsigned long arglen)
if (row + column < count)
{
put_hex8((unsigned char)buffer[row + column]);
- sys_write(1, " ", 1);
+ (void)sys_write(1, " ", 1);
}
else
put(" ");
@@ -78,9 +78,9 @@ void _start(const char* arg, unsigned long arglen)
{
char character = buffer[row + column];
if (character >= 32 && character < 127)
- sys_write(1, &character, 1);
+ (void)sys_write(1, &character, 1);
else
- sys_write(1, ".", 1);
+ (void)sys_write(1, ".", 1);
}
put("\n");
}
@@ -89,7 +89,7 @@ void _start(const char* arg, unsigned long arglen)
char key = (char)get_char();
if (key == 27) // ESC
{
- get_char();
+ (void)get_char();
char final = (char)get_char();
if (final == 'A')
key = 'p';