[Ocfs2-tools-commits] zab commits r1052 -
branches/ocfs2-tools-1.0/libo2cb
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Thu Aug 18 11:49:46 CDT 2005
Author: zab
Date: 2005-08-18 11:49:45 -0500 (Thu, 18 Aug 2005)
New Revision: 1052
Modified:
branches/ocfs2-tools-1.0/libo2cb/o2cb_abi.c
Log:
merge commit 1048 from trunk:
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_.
Modified: branches/ocfs2-tools-1.0/libo2cb/o2cb_abi.c
===================================================================
--- branches/ocfs2-tools-1.0/libo2cb/o2cb_abi.c 2005-08-18 02:22:33 UTC (rev 1051)
+++ branches/ocfs2-tools-1.0/libo2cb/o2cb_abi.c 2005-08-18 16:49:45 UTC (rev 1052)
@@ -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