This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Gitweb: http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=commitdiff;h=9915e185a614b6b80827a0b2e46be4a8d867a6a7 Commit: 9915e185a614b6b80827a0b2e46be4a8d867a6a7 Parent: edc77aea0a262ef4f7ef9bfb79e7bf576267cabf Author: Jan Friesse <jfriesse@redhat.com> AuthorDate: Fri Feb 6 09:42:54 2009 +0100 Committer: Jan Friesse <jfriesse@redhat.com> CommitterDate: Fri Feb 6 09:42:54 2009 +0100 fence_ipmilan: Better name for unused variable in expect.c Foo variable name is not very descriptive. --- fence/agents/ipmilan/expect.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fence/agents/ipmilan/expect.c b/fence/agents/ipmilan/expect.c index 45deb6a..85ba487 100644 --- a/fence/agents/ipmilan/expect.c +++ b/fence/agents/ipmilan/expect.c @@ -68,7 +68,7 @@ ExpectToken(int fd, struct Etoken * toklist, int to_secs, char * buf clock_t ticks; int nchars = 1; /* reserve space for an EOS */ struct timeval tv; - struct tms foo_tms; /*This tms is used, because cygwin doesn't like NULL in times*/ + struct tms tms_unused; /*This tms is unused, but cygwin doesn't like NULL in times*/ struct Etoken * this; /* Figure out when to give up. Handle lbolt wraparound */ @@ -77,7 +77,7 @@ ExpectToken(int fd, struct Etoken * toklist, int to_secs, char * buf return -1; } - starttime = times(&foo_tms); + starttime = times(&tms_unused); ticks = (to_secs*CLOCKS_PER_SEC); endtime = starttime + ticks; @@ -94,7 +94,7 @@ ExpectToken(int fd, struct Etoken * toklist, int to_secs, char * buf } - while (now = times(&foo_tms), + while (now = times(&tms_unused), (wraparound && (now > starttime || now <= endtime)) || (!wraparound && now <= endtime)) {
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |