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 801ED431FB6 for ; Sat, 29 Oct 2011 13:15:55 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.79 X-Spam-Level: X-Spam-Status: No, score=-0.79 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, T_MIME_NO_TEXT=0.01] 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 cEu1c5Bydv5b for ; Sat, 29 Oct 2011 13:15:55 -0700 (PDT) Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id B6F99429E25 for ; Sat, 29 Oct 2011 13:15:54 -0700 (PDT) Received: by faai28 with SMTP id i28so5098910faa.26 for ; Sat, 29 Oct 2011 13:15:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schoepe.org; s=google; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=jtdSYasflf1QMgZI+ikwpVeajJMrqtcGi7TRI/a4y6E=; b=gut41iqxeoVzmmVas9H89wtK/89AmP80BxF8wC2uUoE7q6DJuLcooKATLARPVO9gWt YqXWfNJ6wqwJLTIHLZfMHBxU7s7Sc1VCQmydoXvH4LeIT4Xvm4JPkyRgQv0E0nh1Ssh0 umGZIVpIbWx+FbPFUvHalntfzZfA2kFFwuK5k= Received: by 10.223.76.135 with SMTP id c7mr16100230fak.14.1319919352245; Sat, 29 Oct 2011 13:15:52 -0700 (PDT) Received: from localhost (dslb-178-004-066-018.pools.arcor-ip.net. [178.4.66.18]) by mx.google.com with ESMTPS id n25sm26383726fah.15.2011.10.29.13.15.50 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 29 Oct 2011 13:15:51 -0700 (PDT) From: Daniel Schoepe To: Jani Nikula , notmuch@notmuchmail.org Subject: Re: [RFC PATCH 2/3] cli: add support for limiting the number of search results In-Reply-To: <878vo3r26z.fsf@nikula.org> References: <87mxcjk8mt.fsf@gilead.invalid> <878vo3r26z.fsf@nikula.org> User-Agent: Notmuch/0.9+57~gead43c9 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Sat, 29 Oct 2011 22:15:43 +0200 Message-ID: <87hb2rk100.fsf@gilead.invalid> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Cc: amdragon@mit.edu 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, 29 Oct 2011 20:15:55 -0000 --=-=-= On Sat, 29 Oct 2011 23:08:04 +0300, Jani Nikula wrote: > strtoul() won't touch the data pointed to by p (it only modifies p), so > in that sense it could be const, but you're right in that it really > should be 'char *', just for a more complicated reason. Thanks for > making me look it up: http://c-faq.com/ansi/constmismatch.html (not the > best of explanations, perhaps, but gives an idea why the 2nd parameter > of strtoul() can't be 'const char **'). Oh, right, thanks for the clarification. As I often do in situations such as this, I confused "const char *" and "char const *". --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJOrF7vAAoJEIaTAtce+Z+JJG4P/2FKOZJlcF0cLbwkk7yXiIFi gLnnmItAuZa+UEWQ0LeY1XTHRqEy39l4CsZSbA4EB0l0mOrjiM3XxW8ezX+rTgs4 7i9AuJxoFVlQOTJPuAT+t3CyQhspL9LBrJ69yAoP4R4L51FOa4IqBcwhBpT0rNYC MwBBuPwL/BL+ZnQCnGplf6SyjCdTPLSYHaVLYtvQDCKNqRFX4LUI+hASxC1IILJq v9knKmuk1qnjfp8EsVh5j905+8K2o1OnVcpW64gxfNVPbrVxU2xuv3eUQsto49iA fDXsWH0uZckqwtYg1swVOZbGL8Yo5khfJoGnQ1Wfnt+3X0Igq+jnrC27nqA3Iqec MPBi9Y79aGWZ8684yAXLV6JoYp/dIsvWtto/GhQaSJh5TuznHgLfm9xsSCvkTkUS 2ZHuAHfPWpamz8Lt/D56JFf8cJCMejN1bjOsDT//8ceduWShgnw8Bn3Y+rZHdzFD 9Aab3Fl8iMbUj82xPTyXpCSjgWJd8Vg++z+inRKoz9lW+fxmZvseFvUu1obeTXp1 54dp/xEdnyKDX3XD3C5FYvPq5J6Lu/oPf2bsF94nnssjDfTBrjYVi4nvHZowfyWs LSQkJkISUqVFVQr98+idTlxeWODFfanZe7KUUKUcDa25jTge0kjTjsr0hozkItWq a4sqdfyGcjBMxWoaJlil =5WU/ -----END PGP SIGNATURE----- --=-=-=--