s3:move serverid_equal() to serverid.c
authorMichael Adam <obnox@samba.org>
Fri, 15 Jun 2012 22:30:55 +0000 (00:30 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 21 Jun 2012 06:27:32 +0000 (08:27 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/include/serverid.h
source3/lib/serverid.c
source3/lib/util.c

index 1833f53d559488fcd228792865dee1bd5f3cebe0..ed8d17f95a3f46b90af5ee7d042fff97e91f4b50 100644 (file)
@@ -75,4 +75,6 @@ bool serverid_parent_init(TALLOC_CTX *mem_ctx);
  */
 uint64_t serverid_get_random_unique_id(void);
 
+bool serverid_equal(const struct server_id *p1, const struct server_id *p2);
+
 #endif
index 48d5b4251a18d842ca2d14c20d5457c4bbdc15a0..0033d60833293d0de272510b9db7929af1d51d80 100644 (file)
@@ -453,3 +453,24 @@ uint64_t serverid_get_random_unique_id(void)
 
        return unique_id;
 }
+
+bool serverid_equal(const struct server_id *p1, const struct server_id *p2)
+{
+       if (p1->pid != p2->pid) {
+               return false;
+       }
+
+       if (p1->task_id != p2->task_id) {
+               return false;
+       }
+
+       if (p1->vnn != p2->vnn) {
+               return false;
+       }
+
+       if (p1->unique_id != p2->unique_id) {
+               return false;
+       }
+
+       return true;
+}
index 653fff5c64e9f9069982509a01f83ed4fb57a65f..f1b815878d49e672352396b186aa140e5ee3d801 100644 (file)
@@ -2058,27 +2058,6 @@ struct server_id *new_server_id_task(TALLOC_CTX *mem_ctx)
        return server_id;
 }
 
-bool serverid_equal(const struct server_id *p1, const struct server_id *p2)
-{
-       if (p1->pid != p2->pid) {
-               return false;
-       }
-
-       if (p1->task_id != p2->task_id) {
-               return false;
-       }
-
-       if (p1->vnn != p2->vnn) {
-               return false;
-       }
-
-       if (p1->unique_id != p2->unique_id) {
-               return false;
-       }
-
-       return true;
-}
-
 bool procid_is_me(const struct server_id *pid)
 {
        if (pid->pid != getpid())