From owner-svn-src-stable@FreeBSD.ORG Wed Feb 15 21:52:14 2012 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E726F1065670; Wed, 15 Feb 2012 21:52:14 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D531B8FC13; Wed, 15 Feb 2012 21:52:14 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q1FLqEYC083458; Wed, 15 Feb 2012 21:52:14 GMT (envelope-from jilles@svn.freebsd.org) Received: (from jilles@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q1FLqESh083455; Wed, 15 Feb 2012 21:52:14 GMT (envelope-from jilles@svn.freebsd.org) Message-Id: <201202152152.q1FLqESh083455@svn.freebsd.org> From: Jilles Tjoelker Date: Wed, 15 Feb 2012 21:52:14 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r231784 - stable/9/bin/sh X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 21:52:15 -0000 Author: jilles Date: Wed Feb 15 21:52:14 2012 New Revision: 231784 URL: http://svn.freebsd.org/changeset/base/231784 Log: MFC r229219: sh: Remove unused function scopyn(). Modified: stable/9/bin/sh/mystring.c stable/9/bin/sh/mystring.h Directory Properties: stable/9/bin/sh/ (props changed) Modified: stable/9/bin/sh/mystring.c ============================================================================== --- stable/9/bin/sh/mystring.c Wed Feb 15 21:48:44 2012 (r231783) +++ stable/9/bin/sh/mystring.c Wed Feb 15 21:52:14 2012 (r231784) @@ -43,7 +43,6 @@ __FBSDID("$FreeBSD$"); * * equal(s1, s2) Return true if strings are equal. * scopy(from, to) Copy a string. - * scopyn(from, to, n) Like scopy, but checks for overflow. * number(s) Convert a string of digits to an integer. * is_number(s) Return true if s is a string of digits. */ @@ -67,24 +66,6 @@ char nullstr[1]; /* zero length string /* - * scopyn - copy a string from "from" to "to", truncating the string - * if necessary. "To" is always nul terminated, even if - * truncation is performed. "Size" is the size of "to". - */ - -void -scopyn(const char *from, char *to, int size) -{ - - while (--size > 0) { - if ((*to++ = *from++) == '\0') - return; - } - *to = '\0'; -} - - -/* * prefix -- see if pfx is a prefix of string. */ Modified: stable/9/bin/sh/mystring.h ============================================================================== --- stable/9/bin/sh/mystring.h Wed Feb 15 21:48:44 2012 (r231783) +++ stable/9/bin/sh/mystring.h Wed Feb 15 21:52:14 2012 (r231784) @@ -35,7 +35,6 @@ #include -void scopyn(const char *, char *, int); int prefix(const char *, const char *); int number(const char *); int is_number(const char *);