From e299571088bcee9f77a353473f63b131cafded37 Mon Sep 17 00:00:00 2001 From: Frode Solheim Date: Sat, 12 Jul 2014 15:38:41 +0200 Subject: [PATCH] uaeserial.cpp: minor cleanup --- uaeserial.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/uaeserial.cpp b/uaeserial.cpp index 89bef6cd..9e3d6629 100644 --- a/uaeserial.cpp +++ b/uaeserial.cpp @@ -131,12 +131,12 @@ static uae_u32 nscmd_cmd; static struct devstruct devst[MAX_TOTAL_DEVICES]; static uae_sem_t change_sem, async_sem; -static TCHAR *getdevname (void) +static const TCHAR *getdevname (void) { return _T("uaeserial.device"); } -static void io_log (TCHAR *msg, uaecptr request) +static void io_log (const TCHAR *msg, uaecptr request) { if (log_uaeserial) write_log (_T("%s: %08X %d %08X %d %d io_actual=%d io_error=%d\n"), @@ -313,7 +313,6 @@ static uae_u32 REGPARAM2 dev_expunge (TrapContext *context) static struct asyncreq *get_async_request (struct devstruct *dev, uaecptr request, int ready) { struct asyncreq *ar; - int ret = 0; uae_sem_wait (&async_sem); ar = dev->ar; @@ -404,7 +403,6 @@ void uaeser_signal (void *vdev, int sigmask) { struct devstruct *dev = (struct devstruct*)vdev; struct asyncreq *ar; - int i = 0; uae_sem_wait (&async_sem); ar = dev->ar; -- 2.47.3