[Tinyos-devel] CPM hashtable implementation question
Philip Levis
pal at cs.stanford.edu
Sat Oct 27 10:07:06 PDT 2007
I'll take a look.
Phil
On Oct 25, 2007, at 10:01 AM, Chieh-Jan (Mike) Liang wrote:
> In hashtable_private.h, struct entry has a void pointer named k. I
> think k should be char[NOISE_HISTORY] instead. If you look at
> hashtable_search(...) in hashtable.c, it compares e->k to the k
> passed in. Since e->k is set to point to k in hashtable_insert
> (...), this comparison will always return true. Therefore, I think
> hashtable_insert(...) should copy the content of k to e->k instead.
>
> Please let me know if I am missing something.
>
> Thank you
>
> Mike
> _______________________________________________
> Tinyos-devel mailing list
> Tinyos-devel at Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-
> devel
More information about the Tinyos-devel
mailing list