Commit db6b67ac authored by Ludovic Rousseau's avatar Ludovic Rousseau

Rename POWER_STATE_INUSE -> POWER_STATE_IN_USE

parent 5467a389
......@@ -66,7 +66,7 @@ enum
POWER_STATE_UNPOWERED, /**< auto power off */
POWER_STATE_POWERED, /**< powered */
POWER_STATE_GRACE_PERIOD, /**< card was in use */
POWER_STATE_INUSE /**< card is used */
POWER_STATE_IN_USE /**< card is used */
};
/** time to wait before powering down an unused card */
......
......@@ -348,8 +348,8 @@ LONG SCardConnect(/*@unused@*/ SCARDCONTEXT hContext, LPCSTR szReader,
}
/* the card is now in use */
rContext->powerState = POWER_STATE_INUSE;
Log1(PCSC_LOG_DEBUG, "powerState: POWER_STATE_INUSE");
rContext->powerState = POWER_STATE_IN_USE;
Log1(PCSC_LOG_DEBUG, "powerState: POWER_STATE_IN_USE");
(void)pthread_mutex_unlock(&rContext->powerState_lock);
}
......@@ -719,8 +719,8 @@ LONG SCardReconnect(SCARDHANDLE hCard, DWORD dwShareMode,
/* the card is now in use */
(void)pthread_mutex_lock(&rContext->powerState_lock);
rContext->powerState = POWER_STATE_INUSE;
Log1(PCSC_LOG_DEBUG, "powerState: POWER_STATE_INUSE");
rContext->powerState = POWER_STATE_IN_USE;
Log1(PCSC_LOG_DEBUG, "powerState: POWER_STATE_IN_USE");
(void)pthread_mutex_unlock(&rContext->powerState_lock);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment