diff options
author | Sachidananda <sac@gluster.com> | 2010-07-19 06:17:58 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-07-20 20:44:22 -0700 |
commit | 5342e3a819896c9ae01a959c580a7f0eb0b3ccb2 (patch) | |
tree | 0451306759494d45e43809d60e4f454238a2e0fd /libglusterfs | |
parent | 3e34ad9388e3cf2493f3d75a760e6943f59dc55c (diff) |
Dead assignment cleanup.
Signed-off-by: Sachidananda Urs <sac@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1138 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1138
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/statedump.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libglusterfs/src/statedump.c b/libglusterfs/src/statedump.c index 6f30a30ea..08adf3403 100644 --- a/libglusterfs/src/statedump.c +++ b/libglusterfs/src/statedump.c @@ -96,6 +96,8 @@ gf_proc_dump_add_section (char *key, ...) snprintf (buf + strlen(buf), GF_DUMP_MAX_BUF_LEN - strlen (buf), "]\n"); ret = write (gf_dump_fd, buf, strlen (buf)); + if (ret < 0) + gf_log("", GF_LOG_ERROR, "write error: %s", strerror(errno)); } @@ -121,6 +123,8 @@ gf_proc_dump_write (char *key, char *value,...) offset = strlen (buf); snprintf (buf + offset, GF_DUMP_MAX_BUF_LEN - offset, "\n"); ret = write (gf_dump_fd, buf, strlen (buf)); + if (ret < 0) + gf_log("", GF_LOG_ERROR, "write error: %s", strerror(errno)); } static void |