diff options
author | arved <arved@FreeBSD.org> | 2011-05-22 03:50:18 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2011-05-22 03:50:18 +0800 |
commit | 158759b42676ba879f5d82875ec101acfb1f2de1 (patch) | |
tree | ba31b9eaf6cc384c42fbe417d89a3cec7ca278d9 /devel/ocfpcsc | |
parent | 59e58838908657faea79d28bce0127044a0c3d1d (diff) | |
download | freebsd-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')
-rw-r--r-- | devel/ocfpcsc/Makefile | 5 | ||||
-rw-r--r-- | devel/ocfpcsc/distinfo | 1 | ||||
-rw-r--r-- | devel/ocfpcsc/files/patch-OCFPCSC1.cpp | 11 | ||||
-rw-r--r-- | devel/ocfpcsc/files/patch-PcscExceptions.cpp | 11 |
4 files changed, 25 insertions, 3 deletions
diff --git a/devel/ocfpcsc/Makefile b/devel/ocfpcsc/Makefile index 3103a7a513de..a89656326b34 100644 --- a/devel/ocfpcsc/Makefile +++ b/devel/ocfpcsc/Makefile @@ -1,17 +1,18 @@ # New ports collection makefile for: ocfpcsc # Date created: 2009-01-07 -# Whom: Marcin Cieslak <saper@SYSTEM.PL> +# Whom: Marcin Cieslak <saper@saper.info> # # $FreeBSD$ # PORTNAME= ocfpcsc PORTVERSION= 0.0.1 +PORTREVISION= 1 CATEGORIES= devel security java MASTER_SITES= http://www.musclecard.com/middleware/files/ DISTNAME= OCFPCSC1-${PORTVERSION} -MAINTAINER= saper@SYSTEM.PL +MAINTAINER= saper@saper.info COMMENT= Open Card Framework to PC/SC bridge LIB_DEPENDS= pcsclite.1:${PORTSDIR}/devel/pcsc-lite diff --git a/devel/ocfpcsc/distinfo b/devel/ocfpcsc/distinfo index 518fc80ac1c2..e971586174ff 100644 --- a/devel/ocfpcsc/distinfo +++ b/devel/ocfpcsc/distinfo @@ -1,3 +1,2 @@ -MD5 (OCFPCSC1-0.0.1.tar.gz) = bf397949bffe3b75b652c6ba44a431dd SHA256 (OCFPCSC1-0.0.1.tar.gz) = 56deb4d4c8b5adb74ca47027d4772353bdb4043a7b414adf3bbed537296518a1 SIZE (OCFPCSC1-0.0.1.tar.gz) = 11436 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); |