From ef854fba547d2c674a157d66e921adfae06c9bdc Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Sat, 21 Aug 2021 15:27:55 +0200 Subject: [PATCH] made error codes positive numbers --- kinclude/ktypes.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kinclude/ktypes.h b/kinclude/ktypes.h index 4bb4284..6551a49 100644 --- a/kinclude/ktypes.h +++ b/kinclude/ktypes.h @@ -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 }; /*