aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/msn/msn_util.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/msn_util.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/msn_util.c')
-rw-r--r--protocols/msn/msn_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/msn/msn_util.c b/protocols/msn/msn_util.c
index 763b2768..af00e461 100644
--- a/protocols/msn/msn_util.c
+++ b/protocols/msn/msn_util.c
@@ -179,7 +179,7 @@ void msn_queue_feed(struct msn_data *h, char *bytes, int st)
if (getenv("BITLBEE_DEBUG")) {
fprintf(stderr, "\n\x1b[92m<<< ");
- write(2, bytes , st);
+ fwrite(bytes, st, 1, stderr);
fprintf(stderr, "\x1b[97m");
}
}