Merge lp:~stefan.goetz-deactivatedaccount/hipl/unittests into lp:hipl
Proposed by
Stefan Götz
Status: | Merged |
---|---|
Merged at revision: | 5095 |
Proposed branch: | lp:~stefan.goetz-deactivatedaccount/hipl/unittests |
Merge into: | lp:hipl |
Diff against target: |
44 lines (+15/-10) 1 file modified
test/lib/core/hit.c (+15/-10) |
To merge this branch: | bzr merge lp:~stefan.goetz-deactivatedaccount/hipl/unittests |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
HIPL core team | Pending | ||
Review via email: mp+39225@code.launchpad.net |
Description of the change
Bug fix for compiler error at -O0
To post a comment you must log in.
On 10/24/2010 07:30 PM, René Hummen wrote: hip_convert_ hit_to_ str(&hit, suffix, buf + BEFORE_LEN) == 0, NULL); hip_convert_ hit_to_ str(&hit, suffix, (char *)&buf.hit) == 0, NULL);
>> // write the HIT string into the middle of the buffer
>> - fail_unless(
>> + fail_unless(
>
> buf.hit is already a pointer to the char[]. There's no need to cast and to use it's address.
Fixed.