OSSP CVS Repository

ossp - Difference in ossp-pkg/uuid/uuid.c versions 1.21 and 1.22
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/uuid/uuid.c 1.21 -> 1.22

--- uuid.c       2004/01/10 22:43:40     1.21
+++ uuid.c       2004/01/11 12:14:19     1.22
@@ -193,6 +193,28 @@
     return UUID_RC_OK;
 }
 
+/* check whether UUID object represents 'nil UUID' */
+uuid_rc_t uuid_isnil(uuid_t *uuid, int *result)
+{
+    const unsigned char *ucp;
+    int i;
+
+    /* sanity check argument(s) */
+    if (uuid == NULL || result == NULL)
+        return UUID_RC_ARG;
+
+    /* a "nil UUID" is defined as all octets zero, so check for this case */
+    *result = TRUE;
+    for (i = 0, ucp = (unsigned char *)&(uuid->obj); i < UUID_LEN_BIN; i++) {
+        if (*ucp++ != '\0') {
+            *result = FALSE;
+            break;
+        }
+    }
+
+    return UUID_RC_OK;
+}
+
 /* compare UUID objects */
 uuid_rc_t uuid_compare(uuid_t *uuid1, uuid_t *uuid2, int *result)
 {
@@ -244,28 +266,6 @@
     return UUID_RC_OK;
 }
 
-/* check whether UUID object represents 'nil UUID' */
-uuid_rc_t uuid_isnil(uuid_t *uuid, int *result)
-{
-    const unsigned char *ucp;
-    int i;
-
-    /* sanity check argument(s) */
-    if (uuid == NULL || result == NULL)
-        return UUID_RC_ARG;
-
-    /* a "nil UUID" is defined as all octets zero, so check for this case */
-    *result = TRUE;
-    for (i = 0, ucp = (unsigned char *)&(uuid->obj); i < UUID_LEN_BIN; i++) {
-        if (*ucp++ != '\0') {
-            *result = FALSE;
-            break;
-        }
-    }
-
-    return UUID_RC_OK;
-}
-
 /* unpack UUID binary presentation into UUID object
    (allows in-place operation for internal efficiency!) */
 uuid_rc_t uuid_unpack(uuid_t *uuid, const void *buf)

CVSTrac 2.0.1