Page MenuHomeFreeBSD

D38357.diff
No OneTemporary

D38357.diff

diff --git a/stand/kboot/host_syscall.h b/stand/kboot/host_syscall.h
--- a/stand/kboot/host_syscall.h
+++ b/stand/kboot/host_syscall.h
@@ -29,6 +29,7 @@
#define _HOST_SYSCALL_H
#include <stand.h>
+#include <assert.h>
long host_syscall(int number, ...);
@@ -214,6 +215,12 @@
* function where -1 to -34 are translated to 1 to 34 and all others are EINVAL.
* Pass the linux return value, which will be the -errno.
*/
-#define host_to_stand_errno(e) ((-e) > 34 ? EINVAL : (-e))
+static __inline int
+host_to_stand_errno(int e)
+{
+ assert(e < 0);
+
+ return((-e) > 34 ? EINVAL : (-e));
+}
#endif

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 18, 10:47 PM (20 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15901177
Default Alt Text
D38357.diff (611 B)

Event Timeline