diff options
author | Rosen Penev <rosenp@gmail.com> | 2021-10-14 14:45:08 -0700 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2021-10-14 17:53:54 -0700 |
commit | 9ff8e6bcf3a09c6ff7f2075aa9983292fd19d38c (patch) | |
tree | 11eae2527e217847b38fa01a2bf9eb2c5c9edfba /net | |
parent | 1fa10757b981c910428983779d7772926bc30291 (diff) |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/wsdd2/patches/010-musl-12.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net/wsdd2/patches/010-musl-12.patch b/net/wsdd2/patches/010-musl-12.patch new file mode 100644 index 000000000..dd152c79c --- /dev/null +++ b/net/wsdd2/patches/010-musl-12.patch @@ -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); |