diff options
author | jca <> | 2017-12-05 15:02:06 +0000 |
---|---|---|
committer | jca <> | 2017-12-05 15:02:06 +0000 |
commit | bfd05667a48d9cd78ffd15858ceeda66e215fb5a (patch) | |
tree | a2b7a9f62feac0c78c0fc3f4d2e4d213ea4ee4b4 /src/usr.bin/openssl/s_time.c | |
parent | 600f75bb29d99689e97396445d8fe7607c8d33e5 (diff) | |
download | openbsd-bfd05667a48d9cd78ffd15858ceeda66e215fb5a.tar.gz openbsd-bfd05667a48d9cd78ffd15858ceeda66e215fb5a.tar.bz2 openbsd-bfd05667a48d9cd78ffd15858ceeda66e215fb5a.zip |
Seperate real and user timer interfaces
Use more descriptive names, and make it clearer that real and user
timers work on different static storage. The end goal is to be able to
reuse those timer functions, instead of inlining other timer
implementations subject to clock jumps.
Discussed with Scott Cheloha
Diffstat (limited to 'src/usr.bin/openssl/s_time.c')
-rw-r--r-- | src/usr.bin/openssl/s_time.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr.bin/openssl/s_time.c b/src/usr.bin/openssl/s_time.c index e7a1ef7b63..75009f8617 100644 --- a/src/usr.bin/openssl/s_time.c +++ b/src/usr.bin/openssl/s_time.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s_time.c,v 1.18 2017/11/02 00:31:49 mestre Exp $ */ | 1 | /* $OpenBSD: s_time.c,v 1.19 2017/12/05 15:02:06 jca Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -233,9 +233,9 @@ s_time_usage(void) | |||
233 | #define STOP 1 | 233 | #define STOP 1 |
234 | 234 | ||
235 | static double | 235 | static double |
236 | tm_Time_F(int s) | 236 | tm_Time_F(int op) |
237 | { | 237 | { |
238 | return app_tminterval(s, 1); | 238 | return app_timer_user(op); |
239 | } | 239 | } |
240 | 240 | ||
241 | /*********************************************************************** | 241 | /*********************************************************************** |