On 2013-10-25 16:30, Jennifer Averett wrote:
/* return 1 if the sets set1 and set2 are equal, otherwise return 0 */
> >static inline int CPU_EQUAL(cpu_set_t *set1, cpu_set_t *set2) {
> >    size_t i;
> >
> >    for (i=0; i < _NCPUWORDS; i++)
> >      if (set1->__bits[i] != set2->__bits[i] )
> >        return 0;
> >    return 1;
> >}
>
>Why not use bool as return type?
BSD and linux return 0 or 1 do we want to deviate that much?


Ok, we should follow them.

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
_______________________________________________
rtems-devel mailing list
rtems-devel@rtems.org
http://www.rtems.org/mailman/listinfo/rtems-devel

Reply via email to