Skip to content

Commit

Permalink
Avoid the use of macro as parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
phischu committed Jan 22, 2025
1 parent 45e14ef commit 5c19040
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libraries/llvm/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ void c_fs_close(Int file, Stack stack) {
/**
* Maps the libuv error code to a stable (platform independent) numeric value.
*
* Tries to use most common errno integer values, but introduces fresh values (> 200)
* for those without common errno values.
* Tries to use most common error number integer values, but introduces fresh values (> 200)
* for those without common error number values.
*/
Int c_error_number(Int errno) {
switch (errno) {
Int c_error_number(Int error) {
switch (error) {
case UV_EPERM: return 1; // EPERM
case UV_ENOENT: return 2; // ENOENT
case UV_ESRCH: return 3; // ESRCH
Expand Down

0 comments on commit 5c19040

Please sign in to comment.