[Ocfs2-tools-commits] zab commits r1048 - trunk/libo2cb

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Mon Aug 15 20:05:06 CDT 2005


Author: zab
Signed-off-by: mfasheh
Date: 2005-08-15 20:05:05 -0500 (Mon, 15 Aug 2005)
New Revision: 1048

Modified:
   trunk/libo2cb/o2cb_abi.c
Log:
o get rid of an unused static function to silence compile warnings.
  we can always bring it back from svn, *and* it's a trivial
  cust/paste/rename from _set_.

Signed-off-by: mfasheh


Modified: trunk/libo2cb/o2cb_abi.c
===================================================================
--- trunk/libo2cb/o2cb_abi.c	2005-08-13 01:45:28 UTC (rev 1047)
+++ trunk/libo2cb/o2cb_abi.c	2005-08-16 01:05:05 UTC (rev 1048)
@@ -461,6 +461,7 @@
 	return 0;
 }
 
+/* o2cb_get_region_attribute() would just be s/set/get/ of this function */
 static errcode_t o2cb_set_region_attribute(const char *cluster_name,
 					   const char *region_name,
 					   const char *attr_name,
@@ -478,24 +479,6 @@
 	return o2cb_set_attribute(attr_path, attr_value);
 }
 
-static errcode_t o2cb_get_region_attribute(const char *cluster_name,
-					   const char *region_name,
-					   const char *attr_name,
-					   char *attr_value,
-					   size_t count)
-{
-	int ret;
-	char attr_path[PATH_MAX];
-
-	ret = snprintf(attr_path, PATH_MAX - 1,
-		       O2CB_FORMAT_HEARTBEAT_REGION_ATTR,
-		       cluster_name, region_name, attr_name);
-	if ((ret <= 0) || (ret == (PATH_MAX - 1)))
-		return O2CB_ET_INTERNAL_FAILURE;
-
-	return o2cb_get_attribute(attr_path, attr_value, count);
-}
-
 static errcode_t _fake_default_cluster(char *cluster)
 {
 	errcode_t ret;



More information about the Ocfs2-tools-commits mailing list