]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
uaeserial.cpp: minor cleanup
authorFrode Solheim <frode-code@fengestad.no>
Sat, 12 Jul 2014 13:38:41 +0000 (15:38 +0200)
committerFrode Solheim <frode-code@fengestad.no>
Sat, 12 Jul 2014 13:38:41 +0000 (15:38 +0200)
uaeserial.cpp

index 89bef6cd2191b05ddb6a45cfb9965ed9ac264790..9e3d66292fb650337a96fb67dd3663ffb8f13a33 100644 (file)
@@ -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;