Blame SOURCES/xinetd-2.3.14-fix-type-punned-ptr.patch

319196
diff --git a/sensor.c b/sensor.c
319196
index 09d0877..e65018c 100644
319196
--- a/xinetd/sensor.c
319196
+++ b/xinetd/sensor.c
319196
@@ -100,14 +100,15 @@ void process_sensor( const struct service *sp, const union xsockaddr *addr)
319196
 	 {
319196
 	    /* Here again, eh?...update time stamp. */
319196
             char *exp_time;
319196
-	    time_t stored_time;
319196
+	    int stored_time;
319196
 
319196
 	    item_matched--; /* Is # plus 1, to even get here must be >= 1 */
319196
             exp_time = pset_pointer( global_no_access_time, item_matched ) ;
319196
             if (exp_time == NULL)
319196
                return ;
319196
 
319196
-            if ( parse_base10(exp_time, (int *)&stored_time) )
319196
+            /* FIXME: Parse (long int) instead of (int) prior to possible Y2K38 bug. */
319196
+            if ( parse_base10(exp_time, &stored_time ) )
319196
             {  /* if never let them off, bypass */
319196
                if (stored_time != -1)
319196
                {