New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #20902: macports-20902-a.diff

File macports-20902-a.diff, 1.5 KB (added by kiwi.2008@…, 3 years ago)

Partial patch

  • src/dotd.c

    diff -u -r -x '*.o' -x '*.d' -x '*.stamp' src/dotd.c /Users/sroderick/tmp/distcc-3.1-patched/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

    diff -u -r -x '*.o' -x '*.d' -x '*.stamp' src/emaillog.c /Users/sroderick/tmp/distcc-3.1-patched/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) { 
  • src/hosts.c

    diff -u -r -x '*.o' -x '*.d' -x '*.stamp' src/hosts.c /Users/sroderick/tmp/distcc-3.1-patched/src/hosts.c
    old new  
    125125int dcc_compare_container(const void *a, const void *b); 
    126126 
    127127 
    128 #ifndef HAVE_STRNDUP 
     128#if !HAVE_STRNDUP 
    129129/** 
    130130 * Copy at most @p size characters from @p src, plus a terminating nul. 
    131131 *