From owner-svn-src-all@freebsd.org Tue Aug 11 05:51:17 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 29D2099D197 for ; Tue, 11 Aug 2015 05:51:17 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com [209.85.214.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EF3871A1 for ; Tue, 11 Aug 2015 05:51:16 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: by obnw1 with SMTP id w1so140485760obn.3 for ; Mon, 10 Aug 2015 22:51:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=JVj1it7nb99GZtR4QaHbHo7hktLh39ULU5+ivh8yoak=; b=lRxUQrdRuEfdYLCr4untBBK3cETuFlmUu+/V4tUF63IpnPUi2mhO1oei4GCqYBO0Ah tfx7QgSkkh1gw2L1sxc3aZrEDWTIukZuAktikR5eEUy43LVBDzcU2FMHUxf4H4IyoIzj psUqqvnX3jwsJkFY8F3OUSIMCxjeN2GAZWNxenHqX6BmTdj3EYqUktLwKPlTX5WNHQEZ ahq6oMd7BrwiEZmp1Sav/R+AjT6j1wJa4mYX45EYrR3lNZfHL3IYW+D5vYk/Xif2OGjt rwwObb4pexCzkukc5FBjezYzVk6FS+kXwk5OU9fXOe0XeFKpArkvmR8eJaAfTdCfeWul wnLg== X-Gm-Message-State: ALoCoQmwEFMT/One0yolzma2gfGZxqfWWrd4tsZ6kqELNbD/v1lChSnPfTB0u751fI5w6SC50T2w MIME-Version: 1.0 X-Received: by 10.60.84.143 with SMTP id z15mr22793656oey.55.1439272270260; Mon, 10 Aug 2015 22:51:10 -0700 (PDT) Received: by 10.76.50.84 with HTTP; Mon, 10 Aug 2015 22:51:10 -0700 (PDT) X-Originating-IP: [84.27.222.46] In-Reply-To: <55C931CE.3030806@delphij.net> References: <201508102131.t7ALVo5J050735@repo.freebsd.org> <55C931CE.3030806@delphij.net> Date: Tue, 11 Aug 2015 07:51:10 +0200 Message-ID: Subject: Re: svn commit: r286601 - head/usr.bin/patch From: Ed Schouten To: d@delphij.net Cc: Xin LI , src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Aug 2015 05:51:17 -0000 2015-08-11 1:20 GMT+02:00 Xin Li : > Do you have a better solution for this? No, this is not ideal but I > didn't find a better alternative (or maybe I have missed something obvious?) > > I think with the current POSIX definition of the interface, we have only > two options: either strdup() or cast away const (I'd rather hide this > kind of uglyness in the library), no? Casting const away should be all right in this case. -- Ed Schouten Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717