From owner-svn-src-head@freebsd.org Tue May 10 11:17:37 2016 Return-Path: Delivered-To: svn-src-head@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 BAC1AB354C5; Tue, 10 May 2016 11:17:37 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8C13914A0; Tue, 10 May 2016 11:17:37 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4ABHaKY091983; Tue, 10 May 2016 11:17:36 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4ABHaqW091982; Tue, 10 May 2016 11:17:36 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201605101117.u4ABHaqW091982@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Tue, 10 May 2016 11:17:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r299358 - head/usr.bin/rs X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2016 11:17:37 -0000 Author: bapt Date: Tue May 10 11:17:36 2016 New Revision: 299358 URL: https://svnweb.freebsd.org/changeset/base/299358 Log: Rename getline with get_line to avoid collision with getline(3) When getline(3) in 2009 was added a _WITH_GETLINE guard has also been added. This rename is made in preparation for the removal of this guard Modified: head/usr.bin/rs/rs.c Modified: head/usr.bin/rs/rs.c ============================================================================== --- head/usr.bin/rs/rs.c Tue May 10 11:17:19 2016 (r299357) +++ head/usr.bin/rs/rs.c Tue May 10 11:17:36 2016 (r299358) @@ -93,7 +93,7 @@ static int owidth = 80, gutter = 2; static void getargs(int, char *[]); static void getfile(void); -static int getline(void); +static int get_line(void); static char *getlist(short **, char *); static char *getnum(int *, char *, int); static char **getptrs(char **); @@ -133,13 +133,13 @@ getfile(void) char **padto; while (skip--) { - c = getline(); + c = get_line(); if (flags & SKIPPRINT) puts(curline); if (c == EOF) return; } - getline(); + get_line(); if (flags & NOARGS && curlen < owidth) flags |= ONEPERLINE; if (flags & ONEPERLINE) @@ -184,7 +184,7 @@ getfile(void) INCR(ep); } } - } while (getline() != EOF); + } while (get_line() != EOF); *ep = 0; /* mark end of pointers */ nelem = ep - elem; } @@ -333,7 +333,7 @@ prepfile(void) static char ibuf[BSIZE]; static int -getline(void) /* get line; maintain curline, curlen; manage storage */ +get_line(void) /* get line; maintain curline, curlen; manage storage */ { static int putlength; static char *endblock = ibuf + BSIZE;