Ticket #20902: patch-avoid-compile-warnings.diff

File patch-avoid-compile-warnings.diff, 789 bytes (added by kiwi.2008@…, 15 years ago)

Avoid gcc 4.2.1 compiler warnings

  • src/dotd.c

    old new  
    1818 * USA.
    1919 */
    2020
     21#include <config.h>
     22
    2123#include <stdio.h>
    2224#include <string.h>
    2325#include <stdlib.h>
  • src/emaillog.c

    old new  
    1818 * USA.
    1919 */
    2020
     21#include <config.h>
     22
    2123#include <sys/types.h>
    2224#include <sys/stat.h>
    2325#include <errno.h>
     
    120122  asprintf(&will_send_message_to, will_send_message_format, whom_to_blame);
    121123  asprintf(&cant_send_message_to, cant_send_message_format, whom_to_blame);
    122124
    123   rs_log_warning(will_send_message_to);
     125  rs_log_warning("%s", will_send_message_to);
    124126  free(will_send_message_to);
    125127
    126128  if (email_fileno < 0) {