Print this page
4786 emlxs shouldn't abuse ddi_get_time(9f)
@@ -21,10 +21,13 @@
/*
* Copyright 2010 Emulex. All rights reserved.
* Use is subject to license terms.
*/
+/*
+ * Copyright 2014 Nexenta Systems, Inc. All rights reserved.
+ */
#include <emlxs.h>
#ifdef DHCHAP_SUPPORT
@@ -7599,11 +7602,11 @@
emlxs_port_dhc_t *port_dhc = &port->port_dhc;
emlxs_node_dhc_t *node_dhc = &ndlp->node_dhc;
uint32_t drv_time;
uint32_t timeout;
uint32_t reauth_tmo;
- time_t last_auth_time;
+ uint32_t last_auth_time;
node_dhc->flag &= ~NLP_SET_REAUTH_TIME;
if ((status == ENABLE) &&
node_dhc->auth_cfg.reauthenticate_time_interval) {
@@ -9654,11 +9657,11 @@
char s_rwwpn[64];
emlxs_auth_cfg_t *auth_cfg;
dfc_auth_status_t *auth_status;
NODELIST *ndlp;
uint32_t rc;
- time_t auth_time;
+ uint32_t auth_time;
uint32_t update;
/* Return is authentication is not enabled */
if (cfg[CFG_AUTH_ENABLE].current == 0) {
EMLXS_MSGF(EMLXS_CONTEXT, &emlxs_fcsp_debug_msg,