Author: bde Date: Fri Feb 22 07:00:23 2019 New Revision: 344460 URL: https://svnweb.freebsd.org/changeset/base/344460
Log: Oops, actually 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:57:46 2019 (r344459) +++ head/usr.sbin/vidcontrol/vidcontrol.c Fri Feb 22 07:00:23 2019 (r344460) @@ -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((unsigned char *)tip->ti_name, "unknown", sizeof(tip->ti_name)); - strlcpy((unsigned char *)tip->ti_desc, "unknown", sizeof(tip->ti_desc)); + strlcpy((char *)tip->ti_name, "unknown", sizeof(tip->ti_name)); + strlcpy((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((unsigned char *)ti.ti_name, name, sizeof(ti.ti_name)); + strlcpy((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); _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"