From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31996 invoked by alias); 17 Jul 2012 21:28:57 -0000 Received: (qmail 31986 invoked by uid 22791); 17 Jul 2012 21:28:56 -0000 X-SWARE-Spam-Status: No, hits=-6.1 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Jul 2012 21:28:42 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6HLSfTc024233 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 17 Jul 2012 17:28:41 -0400 Received: from valrhona.uglyboxes.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q6HLScm0027594 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 17 Jul 2012 17:28:41 -0400 Message-ID: <5005D906.8010006@redhat.com> Date: Tue, 17 Jul 2012 21:28:00 -0000 From: Keith Seitz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 MIME-Version: 1.0 To: "gdb-patches@sourceware.org ml" Subject: [RFA] Cleanup: Constify parameter for linespec_parse_line_offset Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-07/txt/msg00242.txt.bz2 Hi, The following trivial patch does makes the parameter for linespec_parse_line_offset const char*. Ok? Keith ChangeLog 2012-07-17 Keith Seitz * linespec.c (linespec_parse_line_offset): Make parameter const. diff --git a/gdb/linespec.c b/gdb/linespec.c index 4156694..e5c1f9f 100644 --- a/gdb/linespec.c +++ b/gdb/linespec.c @@ -1420,7 +1420,7 @@ unexpected_linespec_error (linespec_parser *parser) /* Parse and return a line offset in STRING. */ static struct line_offset -linespec_parse_line_offset (char *string) +linespec_parse_line_offset (const char *string) { struct line_offset line_offset = {0, LINE_OFFSET_NONE};