aboutsummaryrefslogtreecommitdiff
path: root/src/lib/krb5/krb/t_kerb.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2002-09-03 01:13:48 +0000
committerKen Raeburn <raeburn@mit.edu>2002-09-03 01:13:48 +0000
commit4b4c9bcc27e33479ae288fa7ff1fb4924b06eb73 (patch)
tree8230e2e8398e6efadbd9b530b3899f89db5ef39e /src/lib/krb5/krb/t_kerb.c
parent6a0b128209208af5cf3c3456fccd1de770c5c74e (diff)
downloadkrb5-4b4c9bcc27e33479ae288fa7ff1fb4924b06eb73.zip
krb5-4b4c9bcc27e33479ae288fa7ff1fb4924b06eb73.tar.gz
krb5-4b4c9bcc27e33479ae288fa7ff1fb4924b06eb73.tar.bz2
protoize
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14812 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/krb/t_kerb.c')
-rw-r--r--src/lib/krb5/krb/t_kerb.c28
1 files changed, 7 insertions, 21 deletions
diff --git a/src/lib/krb5/krb/t_kerb.c b/src/lib/krb5/krb/t_kerb.c
index 485f584..7f2ce75 100644
--- a/src/lib/krb5/krb/t_kerb.c
+++ b/src/lib/krb5/krb/t_kerb.c
@@ -23,9 +23,7 @@ void test_parse_name (krb5_context, const char *);
void test_set_realm (krb5_context, const char *, const char *);
void usage (char *);
-void test_string_to_timestamp(ctx, ktime)
- krb5_context ctx;
- char *ktime;
+void test_string_to_timestamp(krb5_context ctx, char *ktime)
{
krb5_timestamp timestamp;
time_t t;
@@ -40,9 +38,7 @@ void test_string_to_timestamp(ctx, ktime)
printf("Parsed time was %s", ctime(&t));
}
-void test_425_conv_principal(ctx, name, inst, realm)
- krb5_context ctx;
- char *name, *inst, *realm;
+void test_425_conv_principal(krb5_context ctx, char *name, char *inst, char *realm)
{
krb5_error_code retval;
krb5_principal princ;
@@ -64,9 +60,7 @@ void test_425_conv_principal(ctx, name, inst, realm)
krb5_free_principal(ctx, princ);
}
-void test_524_conv_principal(ctx, name)
- krb5_context ctx;
- char *name;
+void test_524_conv_principal(krb5_context ctx, char *name)
{
krb5_principal princ = 0;
krb5_error_code retval;
@@ -90,9 +84,7 @@ void test_524_conv_principal(ctx, name)
krb5_free_principal (ctx, princ);
}
-void test_parse_name(ctx, name)
- krb5_context ctx;
- const char *name;
+void test_parse_name(krb5_context ctx, const char *name)
{
krb5_error_code retval;
krb5_principal princ = 0, princ2 = 0;
@@ -127,10 +119,7 @@ fail:
krb5_free_principal(ctx, princ2);
}
-void test_set_realm(ctx, name, realm)
- krb5_context ctx;
- const char *name;
- const char *realm;
+void test_set_realm(krb5_context ctx, const char *name, const char *realm)
{
krb5_error_code retval;
krb5_principal princ = 0;
@@ -160,8 +149,7 @@ fail:
krb5_free_principal(ctx, princ);
}
-void usage(progname)
- char *progname;
+void usage(char *progname)
{
fprintf(stderr, "%s: Usage: %s 425_conv_principal <name> <inst> <realm\n",
progname, progname);
@@ -173,9 +161,7 @@ void usage(progname)
}
int
-main(argc, argv)
- int argc;
- char **argv;
+main(int argc, char **argv)
{
krb5_context ctx;
krb5_error_code retval;