[Tux3] [PATCH] Add check for valid attr encodings

Daniel Phillips phillips at phunq.net
Tue Sep 2 12:07:31 PDT 2008


On Tuesday 02 September 2008 11:57, Conrad Meyer wrote:
>  enum atkind {
> +	ATTR_MINIMUM = 6,
>  	MODE_OWNER_ATTR = 6,
>  	DATA_BTREE_ATTR = 7,
>  	CTIME_SIZE_ATTR = 8,
>  	LINK_COUNT_ATTR = 9,
>  	MTIME_ATTR = 10,
> +	ATTR_MAXIMUM = 10,
>  };

The typical form for this would be ATTR_LIMIT or MAX_ATTR_KINDS, one
larger than the highest kind.

Regards,

Daniel

_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://tux3.org/cgi-bin/mailman/listinfo/tux3



More information about the Tux3 mailing list