]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/message.c
Add missing cast
[bacula/bacula] / bacula / src / lib / message.c
index d4810b710a157ffa47cd72ccdc06a195b52d2210..b5d5990b05cb3a2616d4ef26e7cdb9900f85f52b 100755 (executable)
@@ -612,16 +612,16 @@ void dispatch_message(JCR *jcr, int type, time_t mtime, char *msg)
                    Pw(con_lock);      /* get write lock on console message file */
                    errno = 0;
                    if (dtlen) {
-                      fwrite(dt, dtlen, 1, con_fd);
+                      (void)fwrite(dt, dtlen, 1, con_fd);
                    }
                    len = strlen(msg);
                    if (len > 0) {
-                      fwrite(msg, len, 1, con_fd);
+                      (void)fwrite(msg, len, 1, con_fd);
                       if (msg[len-1] != '\n') {
-                         fwrite("\n", 2, 1, con_fd);
+                         (void)fwrite("\n", 2, 1, con_fd);
                       }
                    } else {
-                      fwrite("\n", 2, 1, con_fd);
+                      (void)fwrite("\n", 2, 1, con_fd);
                    }
                    fflush(con_fd);
                    console_msg_pending = TRUE;