From 5694f863c7f26c03d8aad1cd27af7d6c9d30e145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sat, 12 Jan 2008 23:16:01 +0000 Subject: [PATCH] better finish stuff before committing. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23454 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/boot/platform/atari_m68k/toscalls.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/system/boot/platform/atari_m68k/toscalls.h b/src/system/boot/platform/atari_m68k/toscalls.h index a693c8e7e1..180f7d8c16 100644 --- a/src/system/boot/platform/atari_m68k/toscalls.h +++ b/src/system/boot/platform/atari_m68k/toscalls.h @@ -148,17 +148,17 @@ extern status_t toserror(int32 err); typedef struct tos_cookie { uint32 cookie; - enum { + union { int32 ivalue; void *pvalue; - } + }; } tos_cookie; #define COOKIE_JAR (*((const tos_cookie **)0x5A0)) -static inline tos_cookie *tos_find_cookie(uint32 what) +static inline const tos_cookie *tos_find_cookie(uint32 what) { - struct c = COOKIE_JAR; + const tos_cookie *c = COOKIE_JAR; while (c && (c->cookie)) { if (c->cookie == what) return c;