From bb860e49a7faeaf552538a9492ef0ba738c99760 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Thu, 24 Jan 2013 13:38:25 -0800 Subject: [PATCH] rados: remove unused "check_stdio" parameter Signed-off-by: Dan Mick --- src/rados.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rados.cc b/src/rados.cc index 18336fe11638d..0b012c5972b26 100644 --- a/src/rados.cc +++ b/src/rados.cc @@ -175,7 +175,7 @@ static int do_get(IoCtx& io_ctx, const char *objname, const char *outfile, unsig string oid(objname); int fd; - if (check_stdio && strcmp(outfile, "-") == 0) { + if (strcmp(outfile, "-") == 0) { fd = 1; } else { fd = TEMP_FAILURE_RETRY(::open(outfile, O_WRONLY|O_CREAT|O_TRUNC, 0644)); @@ -203,7 +203,7 @@ static int do_get(IoCtx& io_ctx, const char *objname, const char *outfile, unsig offset += outdata.length(); } - if (!check_stdio) + if (fd != 1) TEMP_FAILURE_RETRY(::close(fd)); return 0; } @@ -340,7 +340,7 @@ static int do_put(IoCtx& io_ctx, const char *objname, const char *infile, int op string oid(objname); bufferlist indata; bool stdio = false; - if (check_stdio && strcmp(infile, "-") == 0) + if (strcmp(infile, "-") == 0) stdio = true; int ret; -- 2.39.5