summaryrefslogtreecommitdiffstats
path: root/libglusterfsclient
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-07-17 22:44:24 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-07-20 14:29:19 -0700
commit7b8d2b38a12ed7e0a63ad9b1c38bfa20d8317b11 (patch)
treea23447771e5c961020f0b97582f3bdc4e1668020 /libglusterfsclient
parent500d114032c0d6f92abd25fbf6786b866a0b3dd5 (diff)
fix build warnings in 'libglusterfsclient'
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 130 (build warnings) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=130
Diffstat (limited to 'libglusterfsclient')
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c
index 6ff6f243f21..0133126cd48 100755
--- a/libglusterfsclient/src/libglusterfsclient.c
+++ b/libglusterfsclient/src/libglusterfsclient.c
@@ -7067,6 +7067,7 @@ static struct xlator_cbks libgf_client_cbks = {
static inline xlator_t *
libglusterfs_graph (xlator_t *graph)
{
+ int ret = 0;
xlator_t *top = NULL;
xlator_list_t *xlchild, *xlparent;
@@ -7084,7 +7085,10 @@ libglusterfs_graph (xlator_t *graph)
xlparent = CALLOC (1, sizeof(*xlparent));
xlparent->xlator = top;
graph->parents = xlparent;
- asprintf (&top->type, LIBGF_XL_NAME);
+ ret = asprintf (&top->type, LIBGF_XL_NAME);
+ if (-1 == ret) {
+ fprintf (stderr, "failed to set the top xl's type");
+ }
top->init = libgf_client_init;
top->fops = &libgf_client_fops;