Skip to content

Commit db6b67a

Browse files
Rename POWER_STATE_INUSE -> POWER_STATE_IN_USE
1 parent 5467a38 commit db6b67a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/pcscd.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ enum
6666
POWER_STATE_UNPOWERED, /**< auto power off */
6767
POWER_STATE_POWERED, /**< powered */
6868
POWER_STATE_GRACE_PERIOD, /**< card was in use */
69-
POWER_STATE_INUSE /**< card is used */
69+
POWER_STATE_IN_USE /**< card is used */
7070
};
7171

7272
/** time to wait before powering down an unused card */

src/winscard.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ LONG SCardConnect(/*@unused@*/ SCARDCONTEXT hContext, LPCSTR szReader,
348348
}
349349

350350
/* the card is now in use */
351-
rContext->powerState = POWER_STATE_INUSE;
352-
Log1(PCSC_LOG_DEBUG, "powerState: POWER_STATE_INUSE");
351+
rContext->powerState = POWER_STATE_IN_USE;
352+
Log1(PCSC_LOG_DEBUG, "powerState: POWER_STATE_IN_USE");
353353
(void)pthread_mutex_unlock(&rContext->powerState_lock);
354354
}
355355

@@ -719,8 +719,8 @@ LONG SCardReconnect(SCARDHANDLE hCard, DWORD dwShareMode,
719719

720720
/* the card is now in use */
721721
(void)pthread_mutex_lock(&rContext->powerState_lock);
722-
rContext->powerState = POWER_STATE_INUSE;
723-
Log1(PCSC_LOG_DEBUG, "powerState: POWER_STATE_INUSE");
722+
rContext->powerState = POWER_STATE_IN_USE;
723+
Log1(PCSC_LOG_DEBUG, "powerState: POWER_STATE_IN_USE");
724724
(void)pthread_mutex_unlock(&rContext->powerState_lock);
725725
}
726726
}

0 commit comments

Comments
 (0)