aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ocfpcsc/files
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2011-05-22 03:50:18 +0800
committerarved <arved@FreeBSD.org>2011-05-22 03:50:18 +0800
commit158759b42676ba879f5d82875ec101acfb1f2de1 (patch)
treeba31b9eaf6cc384c42fbe417d89a3cec7ca278d9 /devel/ocfpcsc/files
parent59e58838908657faea79d28bce0127044a0c3d1d (diff)
downloadfreebsd-ports-gnome-158759b42676ba879f5d82875ec101acfb1f2de1.tar.gz
freebsd-ports-gnome-158759b42676ba879f5d82875ec101acfb1f2de1.tar.zst
freebsd-ports-gnome-158759b42676ba879f5d82875ec101acfb1f2de1.zip
Fix warnings reported by clang ++
Update maintainer email address PR: 156965 Submitted by: Marcin Cieslak <saper@saper.info>
Diffstat (limited to 'devel/ocfpcsc/files')
-rw-r--r--devel/ocfpcsc/files/patch-OCFPCSC1.cpp11
-rw-r--r--devel/ocfpcsc/files/patch-PcscExceptions.cpp11
2 files changed, 22 insertions, 0 deletions
diff --git a/devel/ocfpcsc/files/patch-OCFPCSC1.cpp b/devel/ocfpcsc/files/patch-OCFPCSC1.cpp
new file mode 100644
index 000000000000..27db9875b2d1
--- /dev/null
+++ b/devel/ocfpcsc/files/patch-OCFPCSC1.cpp
@@ -0,0 +1,11 @@
+--- OCFPCSC1.cpp.orig 2011-05-12 01:27:28.000000000 +0200
++++ OCFPCSC1.cpp 2011-05-12 01:31:53.000000000 +0200
+@@ -140,7 +140,7 @@
+ CONTEXT_INFO cInfo;
+
+ /* check if context exists */
+- if (cPos = isContextAvailable((long)context) < 0) {
++ if ((cPos = isContextAvailable((long)context)) < 0) {
+ throwPcscException(env, obj, "SCardConnect", "PC/SC Wrapper Error: context not in table", 0);
+ return 0;
+ }
diff --git a/devel/ocfpcsc/files/patch-PcscExceptions.cpp b/devel/ocfpcsc/files/patch-PcscExceptions.cpp
new file mode 100644
index 000000000000..7ea6e8259247
--- /dev/null
+++ b/devel/ocfpcsc/files/patch-PcscExceptions.cpp
@@ -0,0 +1,11 @@
+--- PcscExceptions.cpp.orig 2011-05-12 01:27:15.000000000 +0200
++++ PcscExceptions.cpp 2011-05-12 01:28:07.000000000 +0200
+@@ -77,7 +77,7 @@
+ /* allocate enough bufferspace for the complete exception message */
+ completeMsg = (char *)malloc(strlen(method) + strlen(msg) + 50);
+ sprintf(completeMsg, "PCSC Exception in method %s: %s\n" \
+- "return code = %8.8x\n", method, msg,returnCode);
++ "return code = %8.8lx\n", method, msg,returnCode);
+
+ if ((exceptionMsg = env->NewStringUTF(completeMsg)) == NULL) {
+ free(completeMsg);