From 3fe427eb4bdd9f86c1017502d4b33b62ca71ad5f Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Sun, 3 Mar 1996 17:25:22 +0000 Subject: [PATCH] * gss-server.c (test_import_export_context): Add second argument to gettimeofday. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7585 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/gss-sample/ChangeLog | 5 +++++ src/appl/gss-sample/gss-server.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/appl/gss-sample/ChangeLog b/src/appl/gss-sample/ChangeLog index 109d1aa39..fabf63926 100644 --- a/src/appl/gss-sample/ChangeLog +++ b/src/appl/gss-sample/ChangeLog @@ -1,3 +1,8 @@ +Sun Mar 3 12:14:48 1996 Ezra Peisach + + * gss-server.c (test_import_export_context): Add second argument + to gettimeofday. + Sat Mar 2 03:03:27 1996 Theodore Y. Ts'o * gss-server.c (sign_server): Do better import/export security diff --git a/src/appl/gss-sample/gss-server.c b/src/appl/gss-sample/gss-server.c index 8e7bc9286..f87742b56 100644 --- a/src/appl/gss-sample/gss-server.c +++ b/src/appl/gss-sample/gss-server.c @@ -496,13 +496,13 @@ int test_import_export_context(context) /* * Attempt to save and then restore the context. */ - gettimeofday(&tm1); + gettimeofday(&tm1, (struct timezone *)0); maj_stat = gss_export_sec_context(&min_stat, context, &context_token); if (maj_stat != GSS_S_COMPLETE) { display_status("exporting context", maj_stat, min_stat); return 1; } - gettimeofday(&tm2); + gettimeofday(&tm2, (struct timezone *)0); if (verbose && log) fprintf(log, "Exported context: %d bytes, %7.4f seconds\n", context_token.length, timeval_subtract(&tm2, &tm1)); @@ -511,7 +511,7 @@ int test_import_export_context(context) display_status("importing context", maj_stat, min_stat); return 1; } - gettimeofday(&tm1); + gettimeofday(&tm1, (struct timezone *)0); if (verbose && log) fprintf(log, "Importing context: %7.4f seconds\n", timeval_subtract(&tm1, &tm2)); -- 2.26.2