diff options
author | jmcneill <jmcneill> | 2003-01-07 05:48:10 +0000 |
---|---|---|
committer | jmcneill <jmcneill> | 2003-01-07 05:48:10 +0000 |
commit | 142641d695d1a25296c39824818c439a4c6afe69 (patch) | |
tree | 433d9d52dd5c5afa0f2576e65acdc1009b32af9b /time/dclock/patches | |
parent | 1e839bd92179e26992a155c756474e28cdc86c15 (diff) | |
download | pkgsrc-142641d695d1a25296c39824818c439a4c6afe69.tar.gz |
Use time_t instead of long for return value of time(). Closes pkg/19720
Diffstat (limited to 'time/dclock/patches')
-rw-r--r-- | time/dclock/patches/patch-ab | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/time/dclock/patches/patch-ab b/time/dclock/patches/patch-ab index 4dee1d05e0a..14a9f5e0882 100644 --- a/time/dclock/patches/patch-ab +++ b/time/dclock/patches/patch-ab @@ -1,11 +1,7 @@ -$NetBSD: patch-ab,v 1.1.1.1 2000/12/17 23:32:17 wiz Exp $ +$NetBSD: patch-ab,v 1.2 2003/01/07 05:48:10 jmcneill Exp $ -Patch from Robert Elz to make the clock behave as a clock, -rather than a sundial. -itojun's y2k patch - ---- Dclock.c 2000/01/01 04:40:38 1.1 -+++ Dclock.c 2000/01/01 04:40:53 +--- Dclock.c.orig Tue Jan 7 01:43:15 2003 ++++ Dclock.c Tue Jan 7 01:43:49 2003 @@ -21,8 +21,6 @@ #define CLOCK_WIDTH 256 #define CLOCK_HEIGHT 80 @@ -44,15 +40,27 @@ itojun's y2k patch } /* The colon[0] area is blank */ if (w->dclock.colon[0]) -@@ -629,7 +627,7 @@ +@@ -627,9 +625,9 @@ + { + Boolean save_scroll = w->dclock.scroll; Boolean save_fade = w->dclock.fade; - long t; +- long t; ++ time_t t; - if (!XtIsRealized(w)) + if (!XtIsRealized((Widget) w)) return; if (w->dclock.interval_id != (XtIntervalId)NULL) { +@@ -663,7 +661,7 @@ + { + char buf[11]; + Boolean alarm_went_off = False; +- long t = time(0); ++ time_t t = time(0); + register struct tm *l_time = localtime(&t); + int digit_w = w->dclock.digit_w; + int digit_h = w->dclock.digit_h; @@ -802,7 +800,7 @@ turn_off[i] = oldmask & ~newmask; } |