From 6d68a1180e56f4f22f010465510bf856754b8c2a Mon Sep 17 00:00:00 2001 From: Lars Brinkhoff Date: Fri, 11 Jan 2019 18:41:55 +0100 Subject: [PATCH] display: Update 340 simulation to use sim_ws. --- display/type340.c | 4 ++-- display/type340.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/display/type340.c b/display/type340.c index 89fd5085..e508bff3 100644 --- a/display/type340.c +++ b/display/type340.c @@ -144,12 +144,12 @@ ty340_set_dac(ty340word addr) #endif ty340word -ty340_reset(void) +ty340_reset(void *dptr) { struct type340 *u = UNIT(0); #ifndef TY340_NODISPLAY if (!u->initialized) { - display_init(DIS_TYPE340, 1, u); /* XXX check return? */ + display_init(DIS_TYPE340, 1, dptr); /* XXX check return? */ u->initialized = 1; } #endif diff --git a/display/type340.h b/display/type340.h index 48291973..7bb7af1a 100644 --- a/display/type340.h +++ b/display/type340.h @@ -46,7 +46,7 @@ typedef unsigned int ty340word; /* * calls from host into type340.c */ -ty340word ty340_reset(void); +ty340word ty340_reset(void *); ty340word ty340_status(void); ty340word ty340_instruction(ty340word inst); void ty340_set_dac(ty340word addr);