Bug #1896

scandir select/filter not taking const struct dirent *

Added by alexh over 2 years ago. Updated over 2 years ago.

Status:Closed Start date:
Priority:Low Due date:
Assignee:swildner % Done:

0%

Category:-
Target version:-

Description

Our scandir(3) takes a functor int (*select)(struct dirent *) while Linux, NetBSD
and FreeBSD take int (*select)(const struct dirent *).

This would incindentally also fix compilation of devel/libcompizconfig.

Anyone opposed to changing it to const struct dirent * ?

Regards,
Alex

unnamed (827 Bytes) alexh, 11/04/2010 07:55 pm


Related todos

History

Updated by dillon over 2 years ago

:Our scandir(3) takes a functor int (*select)(struct dirent *) while Linux, NetBSD
:and FreeBSD take int (*select)(const struct dirent *).
:
:This would incindentally also fix compilation of devel/libcompizconfig.
:
:Anyone opposed to changing it to const struct dirent * ?
:
:Regards,
:Alex

Sounds good to me.

-Matt
Matthew Dillon
<dillon@backplane.com>

Updated by swildner over 2 years ago

grab

Updated by alexh over 2 years ago

Thanks Sascha!
On 4 Nov 2010 19:49, "Sascha Wildner (via DragonFly issue tracker)" <
bugs@crater.dragonflybsd.org> wrote:
>
> Sascha Wildner <saw@online.de> added the comment:
>
> grab
>
> ----------
> assignedto: -> swildner
> nosy: +swildner
>
> _____________________________________________________
> DragonFly issue tracker <bugs@lists.dragonflybsd.org>
> <http://bugs.dragonflybsd.org/issue1896&gt;
> _____________________________________________________

Updated by swildner over 2 years ago

I've committed a fix. Since it includes more changes than just what was
proposed originally, could you try again and check if it actually fixed the
devel/libcompizconfig issue?

Updated by alexh over 2 years ago

devel/libcompizconfig seems to compile perfectly now, thanks.

Closing, committed in edacbda68e2b4fcf6f29f472d4c2720d202639dc.

Also available in: Atom PDF