Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id B403F40F432 for ; Sat, 7 Jan 2012 15:27:06 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Y-VhiGryDWWM for ; Sat, 7 Jan 2012 15:27:05 -0800 (PST) Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com [74.125.83.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 569DB409F26 for ; Sat, 7 Jan 2012 15:26:57 -0800 (PST) Received: by mail-ee0-f53.google.com with SMTP id d41so2133471eek.26 for ; Sat, 07 Jan 2012 15:26:57 -0800 (PST) Received: by 10.14.18.9 with SMTP id k9mr4276850eek.46.1325978816969; Sat, 07 Jan 2012 15:26:56 -0800 (PST) Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi. [80.220.92.23]) by mx.google.com with ESMTPS id b49sm237567835eec.9.2012.01.07.15.26.55 (version=SSLv3 cipher=OTHER); Sat, 07 Jan 2012 15:26:55 -0800 (PST) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [RFC PATCH 9/9] test: smtp-dummy: fixes for -std=c99 -pedantic Date: Sun, 8 Jan 2012 01:26:23 +0200 Message-Id: <42817184e6bf4b75c308a732f418a1b7cb065ca0.1325977940.git.jani@nikula.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: References: In-Reply-To: References: X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jan 2012 23:27:07 -0000 Signed-off-by: Jani Nikula --- test/smtp-dummy.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/test/smtp-dummy.c b/test/smtp-dummy.c index 3801a5e..1c29a7d 100644 --- a/test/smtp-dummy.c +++ b/test/smtp-dummy.c @@ -33,6 +33,8 @@ * have been warned. */ +#define _POSIX_C_SOURCE 200809L /* for getline() and fdopen() */ + #include #include #include @@ -162,7 +164,7 @@ main (int argc, char *argv[]) memset (&addr, 0, sizeof (addr)); addr.sin_family = AF_INET; addr.sin_port = htons (25025); - addr.sin_addr = *(struct in_addr *) hostinfo->h_addr; + addr.sin_addr = *(struct in_addr *) hostinfo->h_addr_list[0]; err = bind (sock, (struct sockaddr *) &addr, sizeof(addr)); if (err) { fprintf (stderr, "Error: bind() failed: %s\n", -- 1.7.5.4