From owner-svn-src-all@freebsd.org Fri Feb 22 06:57:47 2019 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 67E4014DC5B4; Fri, 22 Feb 2019 06:57:47 +0000 (UTC) (envelope-from bde@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0BE3885ADD; Fri, 22 Feb 2019 06:57:47 +0000 (UTC) (envelope-from bde@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 0133519E9; Fri, 22 Feb 2019 06:57:47 +0000 (UTC) (envelope-from bde@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x1M6vkBA074629; Fri, 22 Feb 2019 06:57:46 GMT (envelope-from bde@FreeBSD.org) Received: (from bde@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x1M6vkcY074628; Fri, 22 Feb 2019 06:57:46 GMT (envelope-from bde@FreeBSD.org) Message-Id: <201902220657.x1M6vkcY074628@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bde set sender to bde@FreeBSD.org using -f From: Bruce Evans Date: Fri, 22 Feb 2019 06:57:46 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r344459 - head/usr.sbin/vidcontrol X-SVN-Group: head X-SVN-Commit-Author: bde X-SVN-Commit-Paths: head/usr.sbin/vidcontrol X-SVN-Commit-Revision: 344459 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 0BE3885ADD X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.97)[-0.970,0]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 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: Fri, 22 Feb 2019 06:57:47 -0000 Author: bde Date: Fri Feb 22 06:57:46 2019 New Revision: 344459 URL: https://svnweb.freebsd.org/changeset/base/344459 Log: Fix warnings from -Wpointer-sign. Modified: head/usr.sbin/vidcontrol/vidcontrol.c Modified: head/usr.sbin/vidcontrol/vidcontrol.c ============================================================================== --- head/usr.sbin/vidcontrol/vidcontrol.c Fri Feb 22 06:41:47 2019 (r344458) +++ head/usr.sbin/vidcontrol/vidcontrol.c Fri Feb 22 06:57:46 2019 (r344459) @@ -1390,8 +1390,8 @@ get_terminal_emulator(int i, struct term_info *tip) tip->ti_index = i; if (ioctl(0, CONS_GETTERM, tip) == 0) return (1); - strlcpy(tip->ti_name, "unknown", sizeof(tip->ti_name)); - strlcpy(tip->ti_desc, "unknown", sizeof(tip->ti_desc)); + strlcpy((unsigned char *)tip->ti_name, "unknown", sizeof(tip->ti_name)); + strlcpy((unsigned char *)tip->ti_desc, "unknown", sizeof(tip->ti_desc)); return (0); } @@ -1415,7 +1415,7 @@ set_terminal_emulator(const char *name) struct term_info old_ti, ti; get_terminal_emulator(0, &old_ti); - strlcpy(ti.ti_name, name, sizeof(ti.ti_name)); + strlcpy((unsigned char *)ti.ti_name, name, sizeof(ti.ti_name)); if (ioctl(0, CONS_SETTERM, &ti) != 0) warn("SETTERM '%s'", name); get_terminal_emulator(0, &ti);