/[svn]/hopm/trunk/src/libopm/src/libopm.c
ViewVC logotype

Diff of /hopm/trunk/src/libopm/src/libopm.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 9861 by michael, Tue Jul 14 12:37:28 2020 UTC revision 9862 by michael, Sat Jan 2 18:39:00 2021 UTC
# Line 44  Line 44 
44  #include "opm_error.h"  #include "opm_error.h"
45  #include "opm_types.h"  #include "opm_types.h"
46  #include "opm_common.h"  #include "opm_common.h"
47    #include "opm_gettime.h"
48  #include "list.h"  #include "list.h"
49  #include "proxy.h"  #include "proxy.h"
50    
# Line 826  libopm_check_closed(OPM_T *scanner) Line 827  libopm_check_closed(OPM_T *scanner)
827    if (LIST_SIZE(&scanner->scans) == 0)    if (LIST_SIZE(&scanner->scans) == 0)
828      return;      return;
829    
830    time(&present);    present = opm_gettime();
831    timeout = *(int *)libopm_config(scanner->config, OPM_CONFIG_TIMEOUT);    timeout = *(int *)libopm_config(scanner->config, OPM_CONFIG_TIMEOUT);
832    
833    LIST_FOREACH_SAFE(node1, next1, scanner->scans.head)    LIST_FOREACH_SAFE(node1, next1, scanner->scans.head)
# Line 964  libopm_do_connect(OPM_T * scanner, OPM_S Line 965  libopm_do_connect(OPM_T * scanner, OPM_S
965  #endif  #endif
966    
967    conn->state = OPM_STATE_ESTABLISHED;    conn->state = OPM_STATE_ESTABLISHED;
968    time(&conn->creation);  /* Stamp creation time, for timeout */    conn->creation = opm_gettime();  /* Stamp creation time, for timeout */
969  }  }
970    
971  /* check_poll  /* check_poll

Legend:
Removed from v.9861  
changed lines
  Added in v.9862

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28