summaryrefslogtreecommitdiff
path: root/libpkgconf/tests/api/driver.c
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-07-24 17:28:11 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-07-24 17:28:11 +0300
commit463d6e68a8f42423169e4359cc5c8636f6c92589 (patch)
treee43d5b69827070479905686f07b61c808a7b5e18 /libpkgconf/tests/api/driver.c
parenta881eefe7a5fe884e5b958bb2b861e58e90a044b (diff)
Release version 1.6.3+4v1.6.3+4
Fix GCC 10 -Wformat warning Canonicalize license in manifest Add glue buildfile Fix typo in .gitattributes
Diffstat (limited to 'libpkgconf/tests/api/driver.c')
-rw-r--r--libpkgconf/tests/api/driver.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/libpkgconf/tests/api/driver.c b/libpkgconf/tests/api/driver.c
index 6035771..15b0685 100644
--- a/libpkgconf/tests/api/driver.c
+++ b/libpkgconf/tests/api/driver.c
@@ -2,8 +2,7 @@
* license : ISC; see accompanying COPYING file
*/
-/*
- * Enable assertions.
+/* Enable assertions.
*/
#ifdef NDEBUG
# undef NDEBUG
@@ -23,8 +22,7 @@ error_handler (const char* msg, const pkgconf_client_t* c, const void* d)
(void) c; /* Unused. */
(void) d; /* Unused. */
- /*
- * Seems it always have a trailing newline char. Probably it still a good
+ /* Seems it always have a trailing newline char. Probably it still a good
* idea to check if it is. Let's see if it ever be missed.
*
*/
@@ -53,15 +51,14 @@ tuples_print (pkgconf_list_t *list)
{
pkgconf_tuple_t *tuple = node->data;
- // Skip the automatically added variable.
- //
+ /* Skip the automatically added variable.
+ */
if (strcmp (tuple->key, "pcfiledir") != 0)
printf("%s %s\n", tuple->key, tuple->value);
}
}
-/*
- * Usage: argv[0] (--cflags|--libs|--vars) <path>
+/* Usage: argv[0] (--cflags|--libs|--vars) <path>
*
* Print package compiler flags, linker flags or variable name/values one per
* line. The specified package file must have .pc extension.
@@ -115,8 +112,8 @@ main (int argc, const char* argv[])
assert (i + 1 == argc);
const char* path = argv[i];
- // Make sure the file has .pc extension.
- //
+ /* Make sure the file has .pc extension.
+ */
size_t n = strlen (path);
assert (n > 3 && strcmp (path + n - 3, ".pc") == 0);