aboutsummaryrefslogtreecommitdiffstats
path: root/qpdf/qpdfjob-ctest.c
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-04-02 23:14:10 +0200
committerJay Berkenbilt <ejb@ql.org>2022-04-04 14:10:40 +0200
commit12f1eb15ca3fed6310402847559a7c99d3c77847 (patch)
tree8935675b623c6f3b4914b8b44f7fa5f2816a9241 /qpdf/qpdfjob-ctest.c
parentf20fa61eb4c323eb1642c69c236b3d9a1f8b2cdb (diff)
downloadqpdf-12f1eb15ca3fed6310402847559a7c99d3c77847.tar.zst
Programmatically apply new formatting to code
Run this: for i in **/*.cc **/*.c **/*.h **/*.hh; do clang-format < $i >| $i.new && mv $i.new $i done
Diffstat (limited to 'qpdf/qpdfjob-ctest.c')
-rw-r--r--qpdf/qpdfjob-ctest.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/qpdf/qpdfjob-ctest.c b/qpdf/qpdfjob-ctest.c
index 5ee21f31..e67890e8 100644
--- a/qpdf/qpdfjob-ctest.c
+++ b/qpdf/qpdfjob-ctest.c
@@ -10,7 +10,8 @@
#include <assert.h>
#ifndef QPDF_NO_WCHAR_T
-static void wide_test()
+static void
+wide_test()
{
wchar_t const* argv[5];
argv[0] = L"qpdfjob";
@@ -23,7 +24,8 @@ static void wide_test()
}
#endif // QPDF_NO_WCHAR_T
-static void run_tests()
+static void
+run_tests()
{
/* Be sure to use a different output file for each test. */
@@ -61,10 +63,10 @@ static void run_tests()
printf("json error test passed\n");
}
-int main(int argc, char* argv[])
+int
+main(int argc, char* argv[])
{
- if ((argc == 2) && (strcmp(argv[1], "wide") == 0))
- {
+ if ((argc == 2) && (strcmp(argv[1], "wide") == 0)) {
#ifndef QPDF_NO_WCHAR_T
wide_test();
#else