|
1 Upstream fix that will be included in another release of pcsclite. |
|
2 |
|
3 From 88acbfa03b98f28567c2438ea7aca6447488c0af Mon Sep 17 00:00:00 2001 |
|
4 From: Ludovic Rousseau <[email protected]> |
|
5 Date: Sun, 24 Apr 2016 18:55:45 +0200 |
|
6 Subject: [PATCH] Fix compiler warnings on SunOS |
|
7 |
|
8 utils.c: In function 'SendHotplugSignal': |
|
9 utils.c:97:3: warning: format '%d' expects argument of type 'int', but argument 6 has type 'pid_t' [-Wformat=] |
|
10 Log2(PCSC_LOG_INFO, "Send hotplug signal to pcscd (pid=%d)", pid); |
|
11 ^ |
|
12 utils.c:100:4: warning: format '%d' expects argument of type 'int', but argument 6 has type 'pid_t' [-Wformat=] |
|
13 Log3(PCSC_LOG_CRITICAL, "Can't signal pcscd (pid=%d): %s", |
|
14 ^ |
|
15 --- |
|
16 src/utils.c | 7 ++++--- |
|
17 1 file changed, 4 insertions(+), 3 deletions(-) |
|
18 |
|
19 diff --git a/src/utils.c b/src/utils.c |
|
20 index 7efc9b6..2619a48 100644 |
|
21 --- a/src/utils.c |
|
22 +++ b/src/utils.c |
|
23 @@ -94,11 +94,12 @@ int SendHotplugSignal(void) |
|
24 |
|
25 if (pid != -1) |
|
26 { |
|
27 - Log2(PCSC_LOG_INFO, "Send hotplug signal to pcscd (pid=%d)", pid); |
|
28 + Log2(PCSC_LOG_INFO, "Send hotplug signal to pcscd (pid=%ld)", |
|
29 + (long)pid); |
|
30 if (kill(pid, SIGUSR1) < 0) |
|
31 { |
|
32 - Log3(PCSC_LOG_CRITICAL, "Can't signal pcscd (pid=%d): %s", |
|
33 - pid, strerror(errno)); |
|
34 + Log3(PCSC_LOG_CRITICAL, "Can't signal pcscd (pid=%ld): %s", |
|
35 + (long)pid, strerror(errno)); |
|
36 return EXIT_FAILURE ; |
|
37 } |
|
38 (void)SYS_Sleep(1); |
|
39 -- |
|
40 1.9.1 |
|
41 |