From fc40a731d23f893be2cb7699d7e078568d4c210c Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 20 Oct 1998 08:38:41 +0000 Subject: Add braces to silence gcc warnings. --- libstore/decode.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'libstore/decode.c') diff --git a/libstore/decode.c b/libstore/decode.c index c68f8386..33e99492 100644 --- a/libstore/decode.c +++ b/libstore/decode.c @@ -1,6 +1,6 @@ /* Store wire decoding - Copyright (C) 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. Written by Miles Bader This file is part of the GNU Hurd. @@ -43,7 +43,7 @@ store_std_leaf_decode (struct store_enc *enc, { return (*create)(port, flags, block_size, runs, num_runs, store); } - + /* Make sure there are enough encoded ints and ports. */ if (enc->cur_int + 6 > enc->num_ints || enc->cur_port + 1 > enc->num_ports) return EINVAL; @@ -169,10 +169,12 @@ store_decode (struct store_enc *enc, const struct store_class *const *classes, for (cl = classes; *classes; cl ++) if ((*cl)->id == enc->ints[enc->cur_int]) - if ((*cl)->decode) - return (*(*cl)->decode) (enc, classes, store); - else - return EOPNOTSUPP; + { + if ((*cl)->decode) + return (*(*cl)->decode) (enc, classes, store); + else + return EOPNOTSUPP; + } return EINVAL; } -- cgit v1.2.3