From 0568d5cb507f344e8add4f8ea2e5e60140a158a9 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Tue, 28 Jun 2011 09:37:23 -0700 Subject: [PATCH] mds: make cast explicit to suppress compiler warning. Signed-off-by: Greg Farnum --- src/mds/Server.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mds/Server.cc b/src/mds/Server.cc index 8602a8d433e..76b57964fd1 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -3220,7 +3220,7 @@ void Server::handle_client_setdirlayout(MDRequest *mdr) layout->layout.fl_cas_hash = req->head.args.setlayout.layout.fl_cas_hash; if (req->head.args.setlayout.layout.fl_object_stripe_unit > 0) layout->layout.fl_object_stripe_unit = req->head.args.setlayout.layout.fl_object_stripe_unit; - if (req->head.args.setlayout.layout.fl_pg_preferred != -1) + if (req->head.args.setlayout.layout.fl_pg_preferred != (__le32)-1) layout->layout.fl_pg_preferred = req->head.args.setlayout.layout.fl_pg_preferred; if (req->head.args.setlayout.layout.fl_pg_pool > 0) layout->layout.fl_pg_pool = req->head.args.setlayout.layout.fl_pg_pool;