made error codes positive numbers

This commit is contained in:
Anton Lydike 2021-08-21 15:27:55 +02:00
parent 409a993d77
commit ef854fba54

View File

@ -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
};
/*