From owner-svn-src-all@freebsd.org Sun Feb 4 18:36:25 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2D530EE7C55; Sun, 4 Feb 2018 18:36:25 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D2C026C4DE; Sun, 4 Feb 2018 18:36:24 +0000 (UTC) (envelope-from trasz@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C8D931DCCB; Sun, 4 Feb 2018 18:36:24 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w14IaOZM077093; Sun, 4 Feb 2018 18:36:24 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w14IaOEh077092; Sun, 4 Feb 2018 18:36:24 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201802041836.w14IaOEh077092@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Sun, 4 Feb 2018 18:36:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r328855 - head/libexec/getty X-SVN-Group: head X-SVN-Commit-Author: trasz X-SVN-Commit-Paths: head/libexec/getty X-SVN-Commit-Revision: 328855 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Feb 2018 18:36:25 -0000 Author: trasz Date: Sun Feb 4 18:36:24 2018 New Revision: 328855 URL: https://svnweb.freebsd.org/changeset/base/328855 Log: Don't cast away the const, it's not been needed since r92925. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Modified: head/libexec/getty/subr.c Modified: head/libexec/getty/subr.c ============================================================================== --- head/libexec/getty/subr.c Sun Feb 4 17:38:45 2018 (r328854) +++ head/libexec/getty/subr.c Sun Feb 4 18:36:24 2018 (r328855) @@ -101,7 +101,7 @@ gettable(const char *name, char *buf) firsttime = 0; } - switch (cgetent(&buf, (char **)dba, (char *)name)) { + switch (cgetent(&buf, (char **)dba, name)) { case 1: msg = "%s: couldn't resolve 'tc=' in gettytab '%s'"; case 0: @@ -126,7 +126,7 @@ gettable(const char *name, char *buf) } for (sp = gettystrs; sp->field; sp++) { - if ((l = cgetstr(buf, (char*)sp->field, &p)) >= 0) { + if ((l = cgetstr(buf, sp->field, &p)) >= 0) { if (sp->value) { /* prefer existing value */ if (strcmp(p, sp->value) != 0) @@ -144,7 +144,7 @@ gettable(const char *name, char *buf) } for (np = gettynums; np->field; np++) { - if (cgetnum(buf, (char*)np->field, &n) == -1) + if (cgetnum(buf, np->field, &n) == -1) np->set = 0; else { np->set = 1; @@ -153,7 +153,7 @@ gettable(const char *name, char *buf) } for (fp = gettyflags; fp->field; fp++) { - if (cgetcap(buf, (char *)fp->field, ':') == NULL) + if (cgetcap(buf, fp->field, ':') == NULL) fp->set = 0; else { fp->set = 1;