You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
870 B
23 lines
870 B
diff --git a/sensor.c b/sensor.c
|
|
index 09d0877..e65018c 100644
|
|
--- a/xinetd/sensor.c
|
|
+++ b/xinetd/sensor.c
|
|
@@ -100,14 +100,15 @@ void process_sensor( const struct service *sp, const union xsockaddr *addr)
|
|
{
|
|
/* Here again, eh?...update time stamp. */
|
|
char *exp_time;
|
|
- time_t stored_time;
|
|
+ int stored_time;
|
|
|
|
item_matched--; /* Is # plus 1, to even get here must be >= 1 */
|
|
exp_time = pset_pointer( global_no_access_time, item_matched ) ;
|
|
if (exp_time == NULL)
|
|
return ;
|
|
|
|
- if ( parse_base10(exp_time, (int *)&stored_time) )
|
|
+ /* FIXME: Parse (long int) instead of (int) prior to possible Y2K38 bug. */
|
|
+ if ( parse_base10(exp_time, &stored_time ) )
|
|
{ /* if never let them off, bypass */
|
|
if (stored_time != -1)
|
|
{
|