[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Installing Hobbit on OS/X
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Installing Hobbit on OS/X
- From: Henrik Stoerner <henrik (at) hswn.dk>
- Date: Thu, 8 Nov 2007 08:14:36 +0100
- References: <20071102222540.0B1C435513B (at) espphotography.com> <E217882A588751409B3A2C4BCE3629A44C2E474461 (at) winx64.stenhouse.local> <20071107040601.5A08C3BB78E (at) espphotography.com> <961092e10711062038t4041e8d3pe92735da0b7105ba (at) mail.gmail.com> <20071107200509.23F7A3BC5B5 (at) espphotography.com> <961092e10711071333r28f209e2xbc922a3a173b8be3 (at) mail.gmail.com> <20071107221048.223473BC931 (at) espphotography.com> <20071107224245.4FCC13BCD05 (at) espphotography.com> <20071107231340.9B5193BCE27 (at) espphotography.com> <20071108070712.GA30983 (at) hswn.dk>
- User-agent: Mutt/1.5.15+20070412 (2007-04-11)
On Thu, Nov 08, 2007 at 08:07:12AM +0100, Henrik Stoerner wrote:
> applying this patch - it should solve it.
Doh! forgot to attach the patch. Early morning syndrome, sorry.
Henrik
--- lib/rbtr.c 2006/04/05 20:30:03 1.5
+++ lib/rbtr.c 2007/11/02 10:27:06
@@ -393,8 +393,8 @@
int int_compare(void *a, void *b)
{
- if ((int)a < (int)b) return -1;
- else if ((int)a > (int)b) return 1;
+ if (*((int *)a) < *((int *)b)) return -1;
+ else if ((*(int *)a) > (*(int *)b)) return 1;
else return 0;
}
--- hobbitd/hobbitd.c 2007/09/11 21:20:54 1.274
+++ hobbitd/hobbitd.c 2007/11/08 07:10:58
@@ -986,7 +986,7 @@
dbgprintf("-> find_cookie\n");
- cookiehandle = rbtFind(rbcookies, (void *)cookie);
+ cookiehandle = rbtFind(rbcookies, &cookie);
if (cookiehandle != rbtEnd(rbcookies)) {
result = gettreeitem(rbcookies, cookiehandle);
if (result->cookieexpires <= getcurrenttime(NULL)) result = NULL;
@@ -1003,7 +1003,7 @@
if (log->cookie <= 0) return;
- cookiehandle = rbtFind(rbcookies, (void *)log->cookie);
+ cookiehandle = rbtFind(rbcookies, &log->cookie);
log->cookie = -1; log->cookieexpires = 0;
if (cookiehandle == rbtEnd(rbcookies)) return;
@@ -1250,7 +1250,7 @@
} while (find_cookie(newcookie));
log->cookie = newcookie;
- rbtInsert(rbcookies, (void *)newcookie, log);
+ rbtInsert(rbcookies, &log->cookie, log);
/*
* This is fundamentally flawed. The cookie should be generated by
@@ -3890,7 +3890,7 @@
else
ltail->ackmsg = NULL;
ltail->cookie = cookie;
- if (cookie > 0) rbtInsert(rbcookies, (void *)cookie, ltail);
+ if (cookie > 0) rbtInsert(rbcookies, <ail->cookie, ltail);
ltail->cookieexpires = cookieexpires;
ltail->metas = NULL;
ltail->acklist = NULL;