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

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