summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2006-04-17 06:33:23 +0000
committerRay Lai <ray@cvs.openbsd.org>2006-04-17 06:33:23 +0000
commit913f30c78d3834d2f65901c247798658c1eb03cd (patch)
tree783e6c7913fef23ab004b4fc1c12d38e380f559d
parent34110a53f32f7876bcfe72131c74d09985a3a205 (diff)
Remove unused variable.
Found by lint. OK joris@
-rw-r--r--usr.bin/cvs/rcstime.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/cvs/rcstime.c b/usr.bin/cvs/rcstime.c
index 075bacc278c..eda07bc0606 100644
--- a/usr.bin/cvs/rcstime.c
+++ b/usr.bin/cvs/rcstime.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcstime.c,v 1.4 2006/04/14 02:49:44 deraadt Exp $ */
+/* $OpenBSD: rcstime.c,v 1.5 2006/04/17 06:33:22 ray Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -33,7 +33,7 @@ void
rcs_set_tz(char *tz, struct rcs_delta *rdp, struct tm *tb)
{
int tzone;
- int neg, pos;
+ int pos;
char *h, *m;
struct tm *ltb;
time_t now;
@@ -44,10 +44,9 @@ rcs_set_tz(char *tz, struct rcs_delta *rdp, struct tm *tb)
ltb->tm_hour += ((int)ltb->tm_gmtoff/3600);
memcpy(tb, ltb, sizeof(struct tm));
} else {
- neg = pos = 0;
+ pos = 0;
switch (*tz) {
case '-':
- neg = 1;
break;
case '+':
pos = 1;