Net2/usr/src/contrib/isode/dsap/common/attrt_cmp.c

#include "quipu/util.h"
#include "quipu/name.h"

#ifdef AttrT_cmp
#undef AttrT_cmp
#endif

AttrT_cmp_old (x,y)
register AttributeType x,y;
{
	if ( x == NULLAttrT )
		return (y ? -1 : 0);
	if ( y == NULLAttrT )
		return (1);

	if (x == y)
		return (0);

	return (x > y) ? 1 : -1;
}