Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/ypbind Don't use _t as an identifier suffix meaning...
details: https://anonhg.NetBSD.org/src/rev/f59fc5ca0232
branches: trunk
changeset: 765237:f59fc5ca0232
user: dholland <dholland%NetBSD.org@localhost>
date: Mon May 23 02:43:10 2011 +0000
description:
Don't use _t as an identifier suffix meaning "variable containing a time".
diffstat:
usr.sbin/ypbind/ypbind.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diffs (87 lines):
diff -r a77316d9bfdb -r f59fc5ca0232 usr.sbin/ypbind/ypbind.c
--- a/usr.sbin/ypbind/ypbind.c Mon May 23 02:37:58 2011 +0000
+++ b/usr.sbin/ypbind/ypbind.c Mon May 23 02:43:10 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ypbind.c,v 1.65 2011/05/23 02:36:35 dholland Exp $ */
+/* $NetBSD: ypbind.c,v 1.66 2011/05/23 02:43:10 dholland Exp $ */
/*
* Copyright (c) 1992, 1993 Theo de Raadt <deraadt%fsa.ca@localhost>
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifndef LINT
-__RCSID("$NetBSD: ypbind.c,v 1.65 2011/05/23 02:36:35 dholland Exp $");
+__RCSID("$NetBSD: ypbind.c,v 1.66 2011/05/23 02:43:10 dholland Exp $");
#endif
#include <sys/param.h>
@@ -83,8 +83,8 @@
int dom_socket;
CLIENT *dom_client;
long dom_vers;
- time_t dom_check_t;
- time_t dom_ask_t;
+ time_t dom_checktime;
+ time_t dom_asktime;
int dom_lockfd;
int dom_alive;
uint32_t dom_xid;
@@ -326,19 +326,19 @@
#ifdef HEURISTIC
(void)time(&now);
- if (now < ypdb->dom_ask_t + 5) {
+ if (now < ypdb->dom_asktime + 5) {
/*
* Hmm. More than 2 requests in 5 seconds have indicated
* that my binding is possibly incorrect.
* Ok, do an immediate poll of the server.
*/
- if (ypdb->dom_check_t >= now) {
+ if (ypdb->dom_checktime >= now) {
/* don't flood it */
- ypdb->dom_check_t = 0;
+ ypdb->dom_checktime = 0;
check++;
}
}
- ypdb->dom_ask_t = now;
+ ypdb->dom_asktime = now;
#endif
res.ypbind_status = YPBIND_SUCC_VAL;
@@ -643,13 +643,13 @@
(void)time(&t);
for (ypdb = ypbindlist; ypdb; ypdb = ypdb->dom_pnext) {
- if (ypdb->dom_check_t < t) {
+ if (ypdb->dom_checktime < t) {
if (ypdb->dom_alive == 1)
(void)ping(ypdb);
else
(void)nag_servers(ypdb);
(void)time(&t);
- ypdb->dom_check_t = t + 5;
+ ypdb->dom_checktime = t + 5;
}
}
}
@@ -1134,7 +1134,7 @@
sizeof ypdb->dom_server_addr)) {
ypdb->dom_alive = 1;
/* recheck binding in 60 sec */
- ypdb->dom_check_t = time(NULL) + 60;
+ ypdb->dom_checktime = time(NULL) + 60;
}
return;
}
@@ -1142,7 +1142,7 @@
(void)memcpy(&ypdb->dom_server_addr, raddrp,
sizeof ypdb->dom_server_addr);
/* recheck binding in 60 seconds */
- ypdb->dom_check_t = time(NULL) + 60;
+ ypdb->dom_checktime = time(NULL) + 60;
ypdb->dom_vers = YPVERS;
ypdb->dom_alive = 1;
Home |
Main Index |
Thread Index |
Old Index