diff options
| author | Ollivier Robert <roberto@FreeBSD.org> | 2008-08-18 14:26:05 +0000 |
|---|---|---|
| committer | Ollivier Robert <roberto@FreeBSD.org> | 2008-08-18 14:26:05 +0000 |
| commit | ff717da2cf625e3d07537a93a4c240692fa55bd6 (patch) | |
| tree | 9dcf618e4446ac2b5fca7d0afe7767382664f0d6 /clockstuff/propdelay.c | |
| parent | cce65f439697627afbccf5a67035a957bb4d784a (diff) | |
Diffstat (limited to 'clockstuff/propdelay.c')
| -rw-r--r-- | clockstuff/propdelay.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clockstuff/propdelay.c b/clockstuff/propdelay.c index 3ce571c2510e..c8df6866bc6a 100644 --- a/clockstuff/propdelay.c +++ b/clockstuff/propdelay.c @@ -115,7 +115,7 @@ int Gflag = 0; int height; char *progname; -int debug; +volatile int debug; static void doit (double, double, double, double, double, char *); static double latlong (char *, int); @@ -298,7 +298,7 @@ latlong( register char *cp; register char *bp; double arg; - double div; + double divby; int isneg; char buf[32]; char *colon; @@ -340,7 +340,7 @@ latlong( *bp = '\0'; cp++; arg = atof(buf); - div = 60.0; + divby = 60.0; colon = strchr(cp, ':'); if (colon != NULL) { bp = buf; @@ -348,11 +348,11 @@ latlong( *bp++ = *cp++; *bp = '\0'; cp++; - arg += atof(buf) / div; - div = 3600.0; + arg += atof(buf) / divby; + divby = 3600.0; } if (*cp != '\0') - arg += atof(cp) / div; + arg += atof(cp) / divby; } else { arg = atof(str); } |
