From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_NEUTRAL autolearn=no version=3.2.5 From: Led To: ALT Linux Team development discussions Date: Mon, 15 Jun 2009 02:44:14 +0300 User-Agent: KMail/1.9.10 References: <20090608223706.D25B18144D0@granary.armor.altlinux.org> <20090614233129.GA27042@altlinux.org> In-Reply-To: <20090614233129.GA27042@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200906150244.14549.ledest@gmail.com> X-Volia-Original-IP: 93.74.78.212 Subject: Re: [devel] str*(3) - C vs. C++ X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jun 2009 23:44:04 -0000 Archived-At: List-Archive: List-Post: On Monday, 15 June 2009 02:31:29 Alexey I. Froloff wrote: > On Tue, Jun 09, 2009 at 02:37:06AM +0400, QA Team Robot wrote: > > backends/midi/alsa.cpp:234: error: invalid conversion from 'const char*' > > to 'char*' > > backends/midi/alsa.cpp:234: if ((p =3D strpbrk(arg, ADDR_DELIM)) =3D=3D N= ULL) > > =C3=E4=E5 arg =E8=EC=E5=E5=F2 =F2=E8=EF const char *. > > SYNOPSIS > #include > > char *strpbrk(const char *s, const char *accept); > ^^^^^^^^^^^^^ > > /usr/include/c++/4.4.0/cstring: strpbrk(char* __s1, const char* __s2) > ^^^^^^^^^^ > /usr/include/c++/4.4.0/cstring: { return > __builtin_strpbrk(const_cast(__s1), __s2); } > ^^^^^^^^^^^^^^^^^^^^^^^ > > =C8 =EA=E0=EA =FD=F2=EE =ED=E0=E7=FB=E2=E0=E5=F2=F1=FF? =C0=ED=E0=EB=EE= =E3=E8=F7=ED=EE strchr(3) =E8 =E4=F0. inline char* strpbrk(char* __s1, const char* __s2) =C2=FB =F3=EF=F3=F1=F2=E8=EB=E8 "inline". =D1 "inline" =C8=CC=D5=CE =E2=F1= =B8 =ED=E5 =ED=E0=F1=F2=EE=EB=FC=EA=EE =EA=F0=E8=F2=E8=F7=ED=EE:) =2D-=20 Led