git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3707fba
)
s3-clitar: Improve readabilty of cmd_block().
author
Andreas Schneider
<asn@samba.org>
Mon, 17 Feb 2014 09:47:15 +0000
(10:47 +0100)
committer
Andreas Schneider
<asn@samba.org>
Wed, 19 Feb 2014 17:22:29 +0000
(18:22 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
source3/client/clitar.c
patch
|
blob
|
history
diff --git
a/source3/client/clitar.c
b/source3/client/clitar.c
index b8bdbdd1b92bc324771b6d0634e1c1dfaacc9073..12a5e0d5cc2fb0d671b66f6720030ce18eba6090 100644
(file)
--- a/
source3/client/clitar.c
+++ b/
source3/client/clitar.c
@@
-250,14
+250,17
@@
int cmd_block(void)
char *buf;
TALLOC_CTX *ctx = PANIC_IF_NULL(talloc_new(NULL));
int err = 0;
+ bool ok;
- if (!next_token_talloc(ctx, &cmd_ptr, &buf, NULL)) {
+ ok = next_token_talloc(ctx, &cmd_ptr, &buf, NULL);
+ if (!ok) {
DBG(0, ("blocksize <n>\n"));
err = 1;
goto out;
}
- if (tar_set_blocksize(&tar_ctx, atoi(buf))) {
+ ok = tar_set_blocksize(&tar_ctx, atoi(buf));
+ if (ok) {
DBG(0, ("invalid blocksize\n"));
err = 1;
goto out;