Add an Option type and get rid of ENONE #19

Merged
apio merged 5 commits from optionals-and-empty-errors into restart 2022-12-08 15:13:24 +00:00
2 changed files with 1 additions and 3 deletions
Showing only changes of commit b9f3d3c349 - Show all commits

View File

@ -52,8 +52,7 @@
#define ETIMEDOUT 110 // Connection timed out
#define EALREADY 114 // Operation already in progress
// These ones are Luna-specific.
// This one is Luna-specific.
#define EFIXME 342 // Functionality not yet implemented
#define ENONE 343 // Internal or insignificant error
const char* error_string(int error);

View File

@ -55,7 +55,6 @@ const char* error_string(int error)
case ETIMEDOUT: return "Connection timed out";
case EALREADY: return "Operation already in progress";
case EFIXME: return "Functionality not yet implemented";
case ENONE: return "Internal or insignificant error";
default: return "Unknown error";
}
}