mirror of
https://github.com/coolsnowwolf/packages.git
synced 2025-05-01 15:40:46 +08:00
wsdd2: fix usage with musl 1.2.0
This package uses a wrong format string for time_t. Cast to long long to fix. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
a20903f2c9
commit
c056515f19
20
net/wsdd2/patches/010-musl-12.patch
Normal file
20
net/wsdd2/patches/010-musl-12.patch
Normal file
@ -0,0 +1,20 @@
|
||||
--- a/wsd.c
|
||||
+++ b/wsd.c
|
||||
@@ -532,7 +532,7 @@ static int wsd_send_soap_msg(int fd, str
|
||||
"<wsa:To>%s</wsa:To>"
|
||||
"<wsa:Action>%s</wsa:Action>"
|
||||
"<wsa:MessageID>urn:uuid:%s</wsa:MessageID>"
|
||||
- "<wsd:AppSequence InstanceId=\"%lu\" SequenceId=\"urn:uuid:%s\" "
|
||||
+ "<wsd:AppSequence InstanceId=\"%lld\" SequenceId=\"urn:uuid:%s\" "
|
||||
"MessageNumber=\"%u\" />"
|
||||
"%s"
|
||||
"</soap:Header>"
|
||||
@@ -559,7 +559,7 @@ static int wsd_send_soap_msg(int fd, str
|
||||
}
|
||||
|
||||
ssize_t msglen = asprintf(&msg, soap_msg_templ, to, action, msg_id,
|
||||
- wsd_instance, wsd_sequence,
|
||||
+ (long long)wsd_instance, wsd_sequence,
|
||||
++msg_no, soap_relates,
|
||||
body);
|
||||
free(soap_relates);
|
Loading…
Reference in New Issue
Block a user