aboutsummaryrefslogtreecommitdiff
path: root/tests/tap/kerberos.c
diff options
context:
space:
mode:
authorRuss Allbery <eagle@eyrie.org>2020-05-17 17:05:30 -0700
committerRuss Allbery <eagle@eyrie.org>2020-05-17 17:05:30 -0700
commitc138111a3c27863308b6552a5527a9e821a3dc11 (patch)
treefe3c16462bf0213708f20d251a63e5b9bbf2d23f /tests/tap/kerberos.c
parentccfbd34d597318215b979338c4cb5d7e4a3f0d6f (diff)
Update to rra-c-util 8.2 and C TAP Harness 4.7
Update to rra-c-util 8.2: * Implement explicit_bzero with memset if it is not available. * Reformat all C source using clang-format 10. * Work around Test::Strict not skipping .git directories. * Fix warnings with perltidy 20190601 and Perl::Critic 1.134. * Fix warnings with Clang 10, GCC 10, and the Clang static analyzer. Update to C TAP Harness 4.7: * Fix warnings with GCC 10. * Reformat all C source using clang-format 10. * Fixed malloc error checking in bstrndup.
Diffstat (limited to 'tests/tap/kerberos.c')
-rw-r--r--tests/tap/kerberos.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/tap/kerberos.c b/tests/tap/kerberos.c
index 89a36a3..765d802 100644
--- a/tests/tap/kerberos.c
+++ b/tests/tap/kerberos.c
@@ -42,7 +42,7 @@
#include <config.h>
#ifdef HAVE_KRB5
-# include <portable/krb5.h>
+# include <portable/krb5.h>
#endif
#include <portable/system.h>
@@ -59,7 +59,7 @@
* to handle the possible patterns for kinit commands as an array.
*/
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 2) || defined(__clang__)
-# pragma GCC diagnostic ignored "-Wformat-nonliteral"
+# pragma GCC diagnostic ignored "-Wformat-nonliteral"
#endif
@@ -158,12 +158,11 @@ kerberos_kinit(void)
static void
kerberos_kinit(void)
{
- static const char * const format[] = {
+ static const char *const format[] = {
"kinit --no-afslog -k -t %s %s >/dev/null 2>&1 </dev/null",
"kinit -k -t %s %s >/dev/null 2>&1 </dev/null",
"kinit -t %s %s >/dev/null 2>&1 </dev/null",
- "kinit -k -K %s %s >/dev/null 2>&1 </dev/null"
- };
+ "kinit -k -K %s %s >/dev/null 2>&1 </dev/null"};
FILE *file;
char *path;
char principal[BUFSIZ], *command;