From 6b6fc1d5eac7973935ee23d047562820dd5e4bb6 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 18 May 2007 14:17:35 +0000 Subject: [PATCH] Allow construction of PXE status code from internal error number. --- src/include/errno.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/include/errno.h b/src/include/errno.h index 42feb23a..ec8b7555 100644 --- a/src/include/errno.h +++ b/src/include/errno.h @@ -51,6 +51,9 @@ * */ +/** Derive PXENV_STATUS code from gPXE error number */ +#define PXENV_STATUS( rc ) ( (-(rc)) & 0x00ff ) + /** * @defgroup pxeerrors PXE error codes *