Eliminate "initialization from incompatible type" warning in SAVER_MODULE

macro.
This commit is contained in:
Dag-Erling Smørgrav 1998-12-31 13:40:26 +00:00
parent 52529398ad
commit 9d852dd5a7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=42204

View file

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: saver.h,v 1.12 1998/09/17 19:40:29 sos Exp $
* $Id: saver.h,v 1.13 1998/11/04 03:49:38 peter Exp $
*/
#include <machine/apm_bios.h>
#include <machine/console.h>
@ -44,10 +44,9 @@ extern char font_8[], font_14[], font_16[];
extern char palette[];
#define SAVER_MODULE(name) \
static int name ## _modevent(module_t mod, modeventtype_t type, \
void *data) \
static int name ## _modevent(module_t mod, int type, void *data) \
{ \
switch (type) { \
switch ((modeventtype_t)type) { \
case MOD_LOAD: \
return name ## _load(); \
case MOD_UNLOAD: \