From: Frode Solheim Date: Sat, 12 Jul 2014 13:38:41 +0000 (+0200) Subject: uaeserial.cpp: minor cleanup X-Git-Tag: 3000~128^2 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=e299571088bcee9f77a353473f63b131cafded37;p=francis%2Fwinuae.git uaeserial.cpp: minor cleanup --- 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;