diff options
author | fergus.henderson <fergushenderson@users.noreply.github.com> | 2010-03-02 08:13:44 +0000 |
---|---|---|
committer | fergus.henderson <fergushenderson@users.noreply.github.com> | 2010-03-02 08:13:44 +0000 |
commit | 8b8887432173894c3793a8d78672e2072f54b9ef (patch) | |
tree | 3ce2b80de80560c0d51a0b9f9197c258d3361b43 | |
parent | 73cdca6497b37492163431be1f6db5e672fce331 (diff) | |
download | distcc-git-8b8887432173894c3793a8d78672e2072f54b9ef.tar.gz |
Apply patch from Akim Demaille <demaille@gostai.com>:
* src/emaillog.c (dcc_maybe_send_email): Pacify GCC's warnings
about format strings by getting rid of a useless temporary
string.
-rw-r--r-- | src/emaillog.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/emaillog.c b/src/emaillog.c index e896ebe..9e68a0b 100644 --- a/src/emaillog.c +++ b/src/emaillog.c @@ -1,6 +1,6 @@ /* -*- c-file-style: "java"; indent-tabs-mode: nil; tab-width: 4; fill-column: 78 -*- * - * Copyright 2007 Google Inc. + * Copyright 2007, 2009 Google Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -112,18 +112,14 @@ void dcc_maybe_send_email(void) { == NULL) { whom_to_blame = dcc_emaillog_whom_to_blame; } - char *will_send_message_to; char *cant_send_message_to; if (should_send_email == 0) return; if (never_send_email) return; - asprintf(&will_send_message_to, will_send_message_format, whom_to_blame); + rs_log_warning(will_send_message_format, whom_to_blame); asprintf(&cant_send_message_to, cant_send_message_format, whom_to_blame); - rs_log_warning(will_send_message_to); - free(will_send_message_to); - if (email_fileno < 0) { errno = email_errno; perror(cant_send_message_to); |