summaryrefslogtreecommitdiff
path: root/usr/src/lib/libresolv2/common/dnssafe/bigcmp.c
diff options
context:
space:
mode:
authorRao Shoaib <Rao.Shoaib@Sun.COM>2009-11-11 08:45:41 -0800
committerRao Shoaib <Rao.Shoaib@Sun.COM>2009-11-11 08:45:41 -0800
commit9525b14bcdeb5b5f6f95ab27c2f48f18bd2ec829 (patch)
treedf51891a276edf456c1481f49653a76cdfedee53 /usr/src/lib/libresolv2/common/dnssafe/bigcmp.c
parent0324f02a004039d6377111191fdd7134452d7817 (diff)
downloadillumos-gate-9525b14bcdeb5b5f6f95ab27c2f48f18bd2ec829.tar.gz
6289479 libresolv2 clean up and alignment with libbind.6.0
Diffstat (limited to 'usr/src/lib/libresolv2/common/dnssafe/bigcmp.c')
-rw-r--r--usr/src/lib/libresolv2/common/dnssafe/bigcmp.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/usr/src/lib/libresolv2/common/dnssafe/bigcmp.c b/usr/src/lib/libresolv2/common/dnssafe/bigcmp.c
deleted file mode 100644
index f4df4281f8..0000000000
--- a/usr/src/lib/libresolv2/common/dnssafe/bigcmp.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright (c) 1999 by Sun Microsystems, Inc.
- * All rights reserved.
- */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-/* Copyright (C) RSA Data Security, Inc. created 1986, 1996. This is an
- unpublished work protected as such under copyright law. This work
- contains proprietary, confidential, and trade secret information of
- RSA Data Security, Inc. Use, disclosure or reproduction without the
- express written authorization of RSA Data Security, Inc. is
- prohibited.
- */
-
-#include "port_before.h"
-#include "global.h"
-#include "bigmath.h"
-#include "port_after.h"
-
-/* Comparison operator.
- BigCmp (a, b, n) -- returns sign of a-b.
- */
-int BigCmp (a, b, n)
-UINT2 *a, *b;
-unsigned int n;
-{
- register int i;
- int aSign = BigSign (a, n), bSign = BigSign (b, n);
-
- if (aSign > bSign)
- return (1);
- if (aSign < bSign)
- return (-1);
-
- for (i = n-1; i >= 0 && a[i] == b[i]; i--);
-
- if (i == -1)
- return (0);
- if (a[i] > b[i])
- return (1);
- return (-1);
-}