made error codes positive numbers
This commit is contained in:
parent
409a993d77
commit
ef854fba54
@ -6,9 +6,10 @@
|
||||
*/
|
||||
|
||||
enum error_code {
|
||||
ENOCODE = -1, // invalid syscall code
|
||||
EINVAL = -2, // invalid argument value
|
||||
ENOMEM = -3, // not enough memory
|
||||
ENOCODE = 1, // invalid syscall code
|
||||
EINVAL = 2, // invalid argument value
|
||||
ENOMEM = 3, // not enough memory
|
||||
ENOBUFS = 4, // no space left in buffer
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user