diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2014-09-10 03:16:11 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-10-01 13:47:22 +0200 |
commit | 0fbce1457dadbd5ae1307989f2699196161a37df (patch) | |
tree | 2b190921979641dbc74b66086dc9981c38a1a743 | |
parent | 122fdf5ea4fc5b9518404b5149a0bfc88dde2768 (diff) | |
download | samba-0fbce1457dadbd5ae1307989f2699196161a37df.tar.gz samba-0fbce1457dadbd5ae1307989f2699196161a37df.tar.xz samba-0fbce1457dadbd5ae1307989f2699196161a37df.zip |
loadparm//init_copymap: Add braces around if/for blocks to match coding style
Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Oct 1 13:47:22 CEST 2014 on sn-devel-104
-rw-r--r-- | lib/param/loadparm.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c index 218ef69523..5543f790a4 100644 --- a/lib/param/loadparm.c +++ b/lib/param/loadparm.c @@ -1387,13 +1387,15 @@ void init_copymap(struct loadparm_service *pservice) TALLOC_FREE(pservice->copymap); pservice->copymap = bitmap_talloc(pservice, num_parameters()); - if (!pservice->copymap) + if (!pservice->copymap) { DEBUG(0, ("Couldn't allocate copymap!! (size %d)\n", (int)num_parameters())); - else - for (i = 0; i < num_parameters(); i++) + } else { + for (i = 0; i < num_parameters(); i++) { bitmap_set(pservice->copymap, i); + } + } } /** |