diff --git a/common/readutmp_nix.c.v b/common/readutmp_nix.c.v index 57ce4718..71d9b9be 100644 --- a/common/readutmp_nix.c.v +++ b/common/readutmp_nix.c.v @@ -47,8 +47,8 @@ pub const wtmp_file_charptr = &char(C._PATH_WTMP) // Options for read_utmp. pub enum ReadUtmpOptions { - undefined = 0 - check_pids = 1 + undefined = 0 + check_pids = 1 user_process = 2 } diff --git a/src/[/left_bracket.c.v b/src/[/left_bracket.c.v index 8d064693..92286955 100644 --- a/src/[/left_bracket.c.v +++ b/src/[/left_bracket.c.v @@ -214,7 +214,7 @@ fn (p Parser) get() ?string { return none } -fn test_unary(option byte, arg string) bool { +fn test_unary(option u8, arg string) bool { match option { `b` { return os.exists(arg) && FileType(os.inode(arg).typ) == .block_device diff --git a/src/base64/base64.v b/src/base64/base64.v index cb7bd263..0496626e 100644 --- a/src/base64/base64.v +++ b/src/base64/base64.v @@ -17,7 +17,7 @@ const ( // more than 3/4 of chunk_size_decode buffer_size_decode = 16 * 1024 - newline = []byte{len: 1, init: `\n`} + newline = []u8{len: 1, init: `\n`} ) fn get_file(args []string) os.File { diff --git a/src/echo/echo.v b/src/echo/echo.v index 00e91b40..fb73a5b9 100644 --- a/src/echo/echo.v +++ b/src/echo/echo.v @@ -21,7 +21,7 @@ fn hex_to_byte(c u8) u8 { } } -fn is_octal_char(c byte) bool { +fn is_octal_char(c u8) bool { return `0` <= c && c <= `7` } diff --git a/src/ls/helper.v b/src/ls/helper.v index 02f689e3..c8f1635e 100644 --- a/src/ls/helper.v +++ b/src/ls/helper.v @@ -4,7 +4,7 @@ const ( // Based on the exit status of actual ls enum EXIT_STATUS { - success = 0 + success = 0 minor_err = 1 major_err = 2 } diff --git a/src/test/test.c.v b/src/test/test.c.v index 8d064693..92286955 100644 --- a/src/test/test.c.v +++ b/src/test/test.c.v @@ -214,7 +214,7 @@ fn (p Parser) get() ?string { return none } -fn test_unary(option byte, arg string) bool { +fn test_unary(option u8, arg string) bool { match option { `b` { return os.exists(arg) && FileType(os.inode(arg).typ) == .block_device diff --git a/src/wc/wc.v b/src/wc/wc.v index 0779bc55..44650c3f 100644 --- a/src/wc/wc.v +++ b/src/wc/wc.v @@ -67,7 +67,7 @@ fn get_count(chunk FileChunk) Count { return count } -fn is_space(b byte) bool { +fn is_space(b u8) bool { return b == new_line || b == space || b == tab || b == carriage_return || b == vertical_tab || b == form_feed }