svn commit: r306620 - head/usr.bin/mkimg

Marcel Moolenaar marcel at xcllnt.net
Mon Oct 3 18:03:20 UTC 2016


On October 3, 2016 at 10:36:27 AM, Conrad Meyer (cem at freebsd.org) wrote:
On Sun, Oct 2, 2016 at 6:46 PM, Marcel Moolenaar <marcel at freebsd.org> wrote: 
> Author: marcel 
> Date: Mon Oct 3 01:46:47 2016 
> New Revision: 306620 
> URL: https://svnweb.freebsd.org/changeset/base/306620 
> 
> Log: 
> Replace STAILQ with TAILQ. TAILQs are portable enough that they can 
> be used on both macOS and Linux. STAILQs are not. In particular, 
> STAILQ_LAST does not next on Linux. Since neither STAILQ_FOREACH_SAFE 
> nor TAILQ_FOREACH_SAFE exist on Linux, replace its use with a regular 
> TAILQ_FOREACH. The _SAFE variant was only used for having the next 
> pointer in a local variable. 

All of these routines are available in the "libbsd" sys/queue.h. You 
might find other helpful portability/compatibility routines there, 
requiring fewer changes to the FreeBSD mkimg. 
Oh, nice. I’ll take a look.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Message signed with OpenPGP using AMPGpg
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20161003/fb3d93e1/attachment.sig>


More information about the svn-src-head mailing list