From owner-svn-src-projects@FreeBSD.ORG Mon May 13 22:16:06 2013 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B8179428; Mon, 13 May 2013 22:16:06 +0000 (UTC) (envelope-from edschouten@gmail.com) Received: from mail-ve0-x230.google.com (mail-ve0-x230.google.com [IPv6:2607:f8b0:400c:c01::230]) by mx1.freebsd.org (Postfix) with ESMTP id 590DFE04; Mon, 13 May 2013 22:16:06 +0000 (UTC) Received: by mail-ve0-f176.google.com with SMTP id c13so1038283vea.21 for ; Mon, 13 May 2013 15:16:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=ARkj7O7evqoH8vvZAe9IgRg2Lp235X/Ze7c9KdhdgeI=; b=tXruBlEjuRh2qB/3bOaidQ76l0eGHJkOqP8WlNKiJR+m5WkMg/gS3OPnJvEIJQDRrm 8luk1gBpKW4+x9GcF6swdIXmFD/OesYw2zorEGRC3K8khPVVTTPEsFFGpCs2kpEtRVIx d88AOYOQMx3T3OBlqXOykBGbojU5pQ7xxe+gFtM2HpQIXBLvtyfroXDhgeGMea2k68bX NwA1xG9NNCkeP5026WxXj/wxZTy9BqDFHlekC/awyxbKN/7UKXb/oykhJ+ag+JPSc2Q8 My05TFxnL4YoRcmDvOM/Ti8QjQQbTGr4yD9xiPkrmhEqCdzlZTBkoCFHJf2DuCRvX+LJ pDBg== MIME-Version: 1.0 X-Received: by 10.58.221.134 with SMTP id qe6mr20012533vec.2.1368483365869; Mon, 13 May 2013 15:16:05 -0700 (PDT) Sender: edschouten@gmail.com Received: by 10.220.189.133 with HTTP; Mon, 13 May 2013 15:16:05 -0700 (PDT) In-Reply-To: <201305101841.r4AIfEXw099976@svn.freebsd.org> References: <201305101841.r4AIfEXw099976@svn.freebsd.org> Date: Tue, 14 May 2013 00:16:05 +0200 X-Google-Sender-Auth: V92ZSBfdXa3kG6865O92hDax5Ps Message-ID: Subject: Re: svn commit: r250468 - projects/flex-sf/contrib/flex From: Ed Schouten To: Jung-uk Kim Content-Type: text/plain; charset=UTF-8 Cc: svn-src-projects@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 May 2013 22:16:06 -0000 2013/5/10 Jung-uk Kim : > Modified: projects/flex-sf/contrib/flex/buf.c > ============================================================================== > --- projects/flex-sf/contrib/flex/buf.c Fri May 10 18:36:54 2013 (r250467) > +++ projects/flex-sf/contrib/flex/buf.c Fri May 10 18:41:14 2013 (r250468) > @@ -98,7 +98,7 @@ struct Buf *buf_linedir (struct Buf *buf > 1); /* NUL */ > if (!t) > flexfatal (_("Allocation of buffer for line directive failed")); > - for (dst = t + sprintf (t, "#line %d \"", lineno), src = filename; *src; *dst++ = *src++) > + for (dst = t + sprintf (t, "#line %d \"", lineno), src = (char *)filename; *src; *dst++ = *src++) > if (*src == '\\') /* escape backslashes */ > *dst++ = '\\'; > *dst++ = '"'; Wouldn't it be nicer to revert this piece, but to change "src" to be a "const char *"? -- Ed Schouten