1 Return-Path: <jani@nikula.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id B403F40F432
\r
6 for <notmuch@notmuchmail.org>; Sat, 7 Jan 2012 15:27:06 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"
\r
12 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
13 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id Y-VhiGryDWWM for <notmuch@notmuchmail.org>;
\r
17 Sat, 7 Jan 2012 15:27:05 -0800 (PST)
\r
18 Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com
\r
19 [74.125.83.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client
\r
20 certificate requested) by olra.theworths.org (Postfix) with ESMTPS id
\r
21 569DB409F26 for <notmuch@notmuchmail.org>; Sat, 7 Jan 2012 15:26:57 -0800
\r
23 Received: by mail-ee0-f53.google.com with SMTP id d41so2133471eek.26
\r
24 for <notmuch@notmuchmail.org>; Sat, 07 Jan 2012 15:26:57 -0800 (PST)
\r
25 Received: by 10.14.18.9 with SMTP id k9mr4276850eek.46.1325978816969;
\r
26 Sat, 07 Jan 2012 15:26:56 -0800 (PST)
\r
27 Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi.
\r
29 by mx.google.com with ESMTPS id b49sm237567835eec.9.2012.01.07.15.26.55
\r
30 (version=SSLv3 cipher=OTHER); Sat, 07 Jan 2012 15:26:55 -0800 (PST)
\r
31 From: Jani Nikula <jani@nikula.org>
\r
32 To: notmuch@notmuchmail.org
\r
33 Subject: [RFC PATCH 9/9] test: smtp-dummy: fixes for -std=c99 -pedantic
\r
34 Date: Sun, 8 Jan 2012 01:26:23 +0200
\r
36 <42817184e6bf4b75c308a732f418a1b7cb065ca0.1325977940.git.jani@nikula.org>
\r
37 X-Mailer: git-send-email 1.7.5.4
\r
38 In-Reply-To: <cover.1325977940.git.jani@nikula.org>
\r
39 References: <cover.1325977940.git.jani@nikula.org>
\r
40 In-Reply-To: <cover.1325977940.git.jani@nikula.org>
\r
41 References: <cover.1325977940.git.jani@nikula.org>
\r
42 X-BeenThere: notmuch@notmuchmail.org
\r
43 X-Mailman-Version: 2.1.13
\r
45 List-Id: "Use and development of the notmuch mail system."
\r
46 <notmuch.notmuchmail.org>
\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
48 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
50 List-Post: <mailto:notmuch@notmuchmail.org>
\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
54 X-List-Received-Date: Sat, 07 Jan 2012 23:27:07 -0000
\r
56 Signed-off-by: Jani Nikula <jani@nikula.org>
\r
58 test/smtp-dummy.c | 4 +++-
\r
59 1 files changed, 3 insertions(+), 1 deletions(-)
\r
61 diff --git a/test/smtp-dummy.c b/test/smtp-dummy.c
\r
62 index 3801a5e..1c29a7d 100644
\r
63 --- a/test/smtp-dummy.c
\r
64 +++ b/test/smtp-dummy.c
\r
69 +#define _POSIX_C_SOURCE 200809L /* for getline() and fdopen() */
\r
74 @@ -162,7 +164,7 @@ main (int argc, char *argv[])
\r
75 memset (&addr, 0, sizeof (addr));
\r
76 addr.sin_family = AF_INET;
\r
77 addr.sin_port = htons (25025);
\r
78 - addr.sin_addr = *(struct in_addr *) hostinfo->h_addr;
\r
79 + addr.sin_addr = *(struct in_addr *) hostinfo->h_addr_list[0];
\r
80 err = bind (sock, (struct sockaddr *) &addr, sizeof(addr));
\r
82 fprintf (stderr, "Error: bind() failed: %s\n",
\r