Module Name: src Committed By: christos Date: Thu Oct 3 18:02:05 UTC 2019
Modified Files: src/lib/libterminfo: tputs.c Log Message: Cast function pointers that take different arguments through void * To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/lib/libterminfo/tputs.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libterminfo/tputs.c diff -u src/lib/libterminfo/tputs.c:1.4 src/lib/libterminfo/tputs.c:1.5 --- src/lib/libterminfo/tputs.c:1.4 Mon May 1 15:09:22 2017 +++ src/lib/libterminfo/tputs.c Thu Oct 3 14:02:05 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: tputs.c,v 1.4 2017/05/01 19:09:22 roy Exp $ */ +/* $NetBSD: tputs.c,v 1.5 2019/10/03 18:02:05 christos Exp $ */ /* * Copyright (c) 2009 The NetBSD Foundation, Inc. @@ -28,7 +28,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: tputs.c,v 1.4 2017/05/01 19:09:22 roy Exp $"); +__RCSID("$NetBSD: tputs.c,v 1.5 2019/10/03 18:02:05 christos Exp $"); #include <assert.h> #include <ctype.h> @@ -156,7 +156,8 @@ ti_putp(const TERMINAL *term, const char _DIAGASSERT(term != NULL); _DIAGASSERT(str != NULL); - return ti_puts(term, str, 1, (int (*)(int, void *))putchar, NULL); + return ti_puts(term, str, 1, + (int (*)(int, void *))(void *)putchar, NULL); } int @@ -166,7 +167,7 @@ tputs(const char *str, int affcnt, int ( _DIAGASSERT(str != NULL); _DIAGASSERT(outc != NULL); return _ti_puts(1, ospeed, PC, str, affcnt, - (int (*)(int, void *))outc, NULL); + (int (*)(int, void *))(void *)outc, NULL); } int