From: ben Date: Wed, 1 Jan 2003 11:45:43 +0000 (+0000) Subject: Remove a couple of unnecessary casts that my compiler seems to have taken X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/34e9a2022722e0eb2dbe075d83f91fbed8d797d8 Remove a couple of unnecessary casts that my compiler seems to have taken exception to. git-svn-id: svn://svn.tartarus.org/sgt/putty@2402 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/mac/mac.c b/mac/mac.c index 89cbc1d7..456f4f35 100644 --- a/mac/mac.c +++ b/mac/mac.c @@ -1,4 +1,4 @@ -/* $Id: mac.c,v 1.12 2002/12/31 01:40:14 ben Exp $ */ +/* $Id: mac.c,v 1.13 2003/01/01 11:45:43 ben Exp $ */ /* * Copyright (c) 1999 Ben Harris * All rights reserved. @@ -273,7 +273,7 @@ static void mac_contentclick(WindowPtr window, EventRecord *event) { mac_clickterm(window, event); break; case wAbout: - if (DialogSelect(event, &(DialogPtr)window, &item)) + if (DialogSelect(event, &window, &item)) switch (item) { case wiAboutLicence: mac_openlicence(); diff --git a/mac/macdlg.c b/mac/macdlg.c index a7c3c3f5..35b1d6db 100644 --- a/mac/macdlg.c +++ b/mac/macdlg.c @@ -1,4 +1,4 @@ -/* $Id: macdlg.c,v 1.1 2002/12/31 01:40:14 ben Exp $ */ +/* $Id: macdlg.c,v 1.2 2003/01/01 11:45:43 ben Exp $ */ /* * Copyright (c) 2002 Ben Harris * All rights reserved. @@ -74,7 +74,7 @@ void mac_clickdlg(WindowPtr window, EventRecord *event) short item; Session *s = (Session *)GetWRefCon(window); - if (DialogSelect(event, &(DialogPtr)window, &item)) + if (DialogSelect(event, &window, &item)) switch (item) { case wiSettingsOpen: CloseWindow(window);