[pkg-opensc-commit] [opensc] 17/295: fixed incompatible types ('DWORD *' to 'size_t *')

Eric Dorland eric at moszumanska.debian.org
Sat Jun 24 21:11:12 UTC 2017


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository opensc.

commit 9983c4185fb8e3a793c925f3ca60a9b2f97ea833
Author: Frank Morgner <frankmorgner at gmail.com>
Date:   Sun Jun 5 03:04:20 2016 +0200

    fixed incompatible types ('DWORD *' to 'size_t *')
---
 src/libopensc/ctx.c         | 2 +-
 src/minidriver/minidriver.c | 2 +-
 src/pkcs15init/profile.c    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/libopensc/ctx.c b/src/libopensc/ctx.c
index 508e275..e30aaff 100644
--- a/src/libopensc/ctx.c
+++ b/src/libopensc/ctx.c
@@ -605,7 +605,7 @@ static void process_config_file(sc_context_t *ctx, struct _sc_ctx_options *opts)
 	const char *debug = NULL;
 #ifdef _WIN32
 	char temp_path[PATH_MAX];
-	DWORD temp_len;
+	size_t temp_len;
 #endif
 
 	/* Takes effect even when no config around */
diff --git a/src/minidriver/minidriver.c b/src/minidriver/minidriver.c
index 8b57eff..b588028 100644
--- a/src/minidriver/minidriver.c
+++ b/src/minidriver/minidriver.c
@@ -255,7 +255,7 @@ static void logprintf(PCARD_DATA pCardData, int level, _Printf_format_string_ co
  * close so as the file is not left open during any wait.
  */
 	DWORD md_debug = 0;
-	DWORD sz = sizeof(md_debug);
+	size_t sz = sizeof(md_debug);
 	int rv;
 
 	rv = sc_ctx_win32_get_config_value("CARDMOD_LOW_LEVEL_DEBUG",
diff --git a/src/pkcs15init/profile.c b/src/pkcs15init/profile.c
index b0e47c4..2ae105b 100644
--- a/src/pkcs15init/profile.c
+++ b/src/pkcs15init/profile.c
@@ -330,7 +330,7 @@ sc_profile_load(struct sc_profile *profile, const char *filename)
 	int res = 0, i;
 #ifdef _WIN32
 	char temp_path[PATH_MAX];
-	DWORD temp_len;
+	size_t temp_len;
 #endif
 
 	LOG_FUNC_CALLED(ctx);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/opensc.git



More information about the pkg-opensc-commit mailing list