X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Fhex-xcode.c;h=2e70f737fa1c2346ab59d628cd3f8645bf90789e;hp=33046e9a51785378d5f5003469941f1f428a2755;hb=2786aa4d548d28579c761e9358d44c84dfb29068;hpb=7ac96b149f5a0e5c03b64856d7c20789dab3c628 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" }, { }