aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/msn/soap.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2016-11-28 16:26:16 -0300
committerdequis <dx@dxzone.com.ar>2016-11-28 16:26:16 -0300
commit0483e1e6e3954787058aff78223cb758f0074f2d (patch)
tree887ef672f103c08cdb25e3f48a8e01adcf636c94 /protocols/msn/soap.c
parent2a1c27f7d49e5065d4af598848bb3810bcf65e93 (diff)
Fix some compiler warnings
warn_unused_result on write() is particularly annoying. You can't just add (void) to ignore it due to gcc bug 66425. I replaced some of those with fwrite() and used a variable marked with the G_GNUC_UNUSED attribute for the writes from signal handlers.
Diffstat (limited to 'protocols/msn/soap.c')
-rw-r--r--protocols/msn/soap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/msn/soap.c b/protocols/msn/soap.c
index 1fa22d13..14aaed11 100644
--- a/protocols/msn/soap.c
+++ b/protocols/msn/soap.c
@@ -212,9 +212,9 @@ static void msn_soap_debug_print(const char *headers, const char *payload)
if (headers) {
if ((s = strstr(headers, "\r\n\r\n"))) {
- write(2, headers, s - headers + 4);
+ fwrite(headers, s - headers + 4, 1, stderr);
} else {
- write(2, headers, strlen(headers));
+ fwrite(headers, strlen(headers), 1, stderr);
}
}