forcing empty parameter list with function(void) instead of unspecified parameter list with function()
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@162 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
@@ -87,7 +87,7 @@ char* perform_initialization(int num)
|
||||
}
|
||||
|
||||
|
||||
void setup() {
|
||||
void setup(void) {
|
||||
/*setup environment, open device, set global filehandle*/
|
||||
DWORD dwActiveProtocol;
|
||||
LONG pcsc_result;
|
||||
@@ -130,7 +130,7 @@ void printHex(char *title, unsigned char *msg, unsigned int length) {
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
void cleanup() {
|
||||
void cleanup(void) {
|
||||
int releaseContext;
|
||||
/*Power down card*/
|
||||
SCardDisconnect(hcard, SCARD_UNPOWER_CARD);
|
||||
|
||||
@@ -17,8 +17,8 @@ void checkSig(int signo);
|
||||
unsigned int read_from_device(unsigned char *inputBuffer);
|
||||
int transmit_to_pcsc(unsigned char *inputBuffer, unsigned int inputLength, unsigned char *outputBuffer, unsigned int *outputLength);
|
||||
void write_to_device(unsigned char *buffer, unsigned int msglength);
|
||||
void setup();
|
||||
void cleanup();
|
||||
void setup(void);
|
||||
void cleanup(void);
|
||||
void printHex(char *title, unsigned char *msg, unsigned int length);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user