[Pcsclite-git-commit] [PCSC] 04/06: Fix compiler warning on SunOS
Ludovic Rousseau
rousseau at moszumanska.debian.org
Sun Apr 24 17:08:31 UTC 2016
This is an automated email from the git hooks/post-receive script.
rousseau pushed a commit to branch master
in repository PCSC.
commit 2360debebf1c35c8599cd2e0fc484e5f5029ab87
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date: Sun Apr 24 18:52:45 2016 +0200
Fix compiler warning on SunOS
pcscdaemon.c: In function 'main':
pcscdaemon.c:402:5: warning: format '%d' expects argument of type 'int', but argument 6 has type 'pid_t' [-Wformat=]
Log2(PCSC_LOG_CRITICAL,
^
---
src/pcscdaemon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pcscdaemon.c b/src/pcscdaemon.c
index 624e759..099b18c 100644
--- a/src/pcscdaemon.c
+++ b/src/pcscdaemon.c
@@ -491,7 +491,7 @@ int main(int argc, char **argv)
Log1(PCSC_LOG_CRITICAL,
"file " PCSCLITE_CSOCK_NAME " already exists.");
Log2(PCSC_LOG_CRITICAL,
- "Another pcscd (pid: %d) seems to be running.", pid);
+ "Another pcscd (pid: %ld) seems to be running.", (long)pid);
return EXIT_FAILURE;
}
else
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/PCSC.git
More information about the Pcsclite-cvs-commit
mailing list