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 A1331429E29 for ; Thu, 16 Jun 2011 03:31:51 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, 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 G+aBqEWanU1J for ; Thu, 16 Jun 2011 03:31:51 -0700 (PDT) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id BF3DE431FB6 for ; Thu, 16 Jun 2011 03:31:50 -0700 (PDT) Received: by bwg12 with SMTP id 12so153989bwg.26 for ; Thu, 16 Jun 2011 03:31:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=2aQ37njiqwKPS1JG8Iuu8YCJCkt8UFjouJHg6+UlgHg=; b=B03eUPU44PO3rYr4gGLmvrHpReqvdyhr7eMRM0ByHhJaQR39mLMVCR+pCZzHZKkxsQ qtC3AqWGxdfTL3FXZ0xeQ8VHmgXEgi586ZjLPVW1yRbQ87lBu+udWoIfoHg4EP97F3Ed i1smbSmx3721FnDaqarm26kqsQYKhsZVCWjgc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=qjCbCpzk9g4+ElZwwHQxMp/UAoYukAGOaYW/5HFqdCfiSw5g05D+k4jvPVI4DhPWg/ A7cFqYTeqHjZvRfi8r6DCMbiQXO2oy3NsJK72vNvjmSka4vOEvfyixQ/N1jdhR8JyHDo aHLo60S4x4lLqU/X1bWBVkt7PXwjvRiGtJpGw= Received: by 10.204.189.209 with SMTP id df17mr552557bkb.75.1308220309162; Thu, 16 Jun 2011 03:31:49 -0700 (PDT) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id v6sm1095475bkf.23.2011.06.16.03.31.46 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 16 Jun 2011 03:31:47 -0700 (PDT) From: Dmitry Kurochkin To: notmuch@notmuchmail.org Subject: [PATCH] Fix compilation warnings in test/smtp-dummy.c. Date: Thu, 16 Jun 2011 14:32:08 +0400 Message-Id: <1308220328-17995-1-git-send-email-dmitry.kurochkin@gmail.com> X-Mailer: git-send-email 1.7.5.4 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: Thu, 16 Jun 2011 10:31:51 -0000 * Remove unused variables in main(): buf, bytes and greeting. * Replace return with no value in main() with exit(3). --- test/smtp-dummy.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/test/smtp-dummy.c b/test/smtp-dummy.c index e58d0ad..133d6c4 100644 --- a/test/smtp-dummy.c +++ b/test/smtp-dummy.c @@ -99,9 +99,6 @@ process_command (FILE *peer, FILE *output, const char *command) static void do_smtp_to_file (FILE *peer, FILE *output) { - char buf[4096]; - ssize_t bytes; - char greeting[] = "220 localhost smtp-dummy\r\n"; char *line = NULL; size_t line_size; ssize_t line_len; @@ -193,7 +190,7 @@ main (int argc, char *argv[]) if (peer_file == NULL) { fprintf (stderr, "Error: fdopen() failed: %s\n", strerror (errno)); - return; + exit (1); } do_smtp_to_file (peer_file, output); -- 1.7.5.4