aboutsummaryrefslogtreecommitdiff
path: root/test/hex-xcode.c
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2019-06-25 13:55:45 -0400
committerDavid Bremner <david@tethera.net>2019-06-29 21:18:15 +0200
commitbdc87f0d3ec41dd4744a89d1d19b2186d0647a56 (patch)
tree06a7bd96d79e9a4417cb1434cf138f2dbde78534 /test/hex-xcode.c
parent1959a95d2538daa2a802b74699ecb2b42d997a2d (diff)
test: run uncrustify
This is the result of running: $ uncrustify --replace --config ../devel/uncrustify.cfg *.cc *.c *.h in the test directory. Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Diffstat (limited to 'test/hex-xcode.c')
-rw-r--r--test/hex-xcode.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/hex-xcode.c b/test/hex-xcode.c
index 33046e9a..2e70f737 100644
--- a/test/hex-xcode.c
+++ b/test/hex-xcode.c
@@ -26,13 +26,13 @@ xcode (void *ctx, enum direction dir, char *in, char **buf_p, size_t *size_p)
if (dir == ENCODE)
status = hex_encode (ctx, in, buf_p, size_p);
else
- if (inplace) {
- status = hex_decode_inplace (in);
- *buf_p = in;
- *size_p = strlen(in);
- } else {
- status = hex_decode (ctx, in, buf_p, size_p);
- }
+ if (inplace) {
+ status = hex_decode_inplace (in);
+ *buf_p = in;
+ *size_p = strlen (in);
+ } else {
+ status = hex_decode (ctx, in, buf_p, size_p);
+ }
if (status == HEX_SUCCESS)
fputs (*buf_p, stdout);
@@ -49,9 +49,9 @@ main (int argc, char **argv)
notmuch_opt_desc_t options[] = {
{ .opt_keyword = &dir, .name = "direction", .keywords =
- (notmuch_keyword_t []){ { "encode", ENCODE },
- { "decode", DECODE },
- { 0, 0 } } },
+ (notmuch_keyword_t []){ { "encode", ENCODE },
+ { "decode", DECODE },
+ { 0, 0 } } },
{ .opt_bool = &omit_newline, .name = "omit-newline" },
{ .opt_bool = &inplace, .name = "in-place" },
{ }