better finish stuff before committing.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23454 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol
2008-01-12 23:16:01 +00:00
parent dcf911ef8f
commit 5694f863c7
@@ -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;