Dispose of some unused local variables.
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 28 Dec 2002 22:22:43 +0000 (22:22 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 28 Dec 2002 22:22:43 +0000 (22:22 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@2371 cda61777-01e9-0310-a592-d414129be87e

mac/mac.c
mac/macstore.c
mac/macterm.c

index 779792f..7cbe8c7 100644 (file)
--- a/mac/mac.c
+++ b/mac/mac.c
@@ -1,4 +1,4 @@
-/* $Id: mac.c,v 1.7 2002/12/13 00:02:48 ben Exp $ */
+/* $Id: mac.c,v 1.8 2002/12/28 22:22:43 ben Exp $ */
 /*
  * Copyright (c) 1999 Ben Harris
  * All rights reserved.
@@ -456,11 +456,6 @@ static void mac_openabout(void) {
 }
 
 static void mac_openlicence(void) {
-    DialogItemType itemtype;
-    Handle item;
-    VersRecHndl vers;
-    Rect box;
-    StringPtr longvers;
 
     if (windows.licence)
        SelectWindow(windows.licence);
index 1c317eb..5764e19 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: macstore.c,v 1.2 2002/12/12 23:55:51 ben Exp $ */
+/* $Id: macstore.c,v 1.3 2002/12/28 22:22:43 ben Exp $ */
 
 /*
  * macstore.c: Macintosh-specific impementation of the interface
@@ -87,7 +87,6 @@ struct write_settings {
 void *open_settings_w(char *sessionname) {
     short sessVRefNum, tmpVRefNum;
     long sessDirID, tmpDirID;
-    FSSpec sessfile;
     OSErr error;
     Str255 psessionname;
     struct write_settings *ws;
@@ -247,7 +246,6 @@ char *read_setting_s(void *handle, char *key, char *buffer, int buflen) {
 int read_setting_i(void *handle, char *key, int defvalue) {
     int fd;
     Handle h;
-    OSErr error;
     int value;
 
     if (handle == NULL) goto out;
index 185c7eb..1e7eb42 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: macterm.c,v 1.23 2002/12/13 00:02:48 ben Exp $ */
+/* $Id: macterm.c,v 1.24 2002/12/28 22:22:43 ben Exp $ */
 /*
  * Copyright (c) 1999 Simon Tatham
  * Copyright (c) 1999, 2002 Ben Harris
@@ -119,7 +119,7 @@ static void inbuf_putstr(Session *s, const char *c) {
 
 static void display_resource(Session *s, unsigned long type, short id) {
     Handle h;
-    int len, i;
+    int len;
     char *t;
 
     h = GetResource(type, id);
@@ -140,7 +140,6 @@ void mac_newsession(void) {
     Session *s;
     UInt32 starttime;
     char msg[128];
-    OSErr err;
 
     /* This should obviously be initialised by other means */
     s = smalloc(sizeof(*s));
@@ -270,7 +269,6 @@ static void mac_adjustsize(Session *s, int newrows, int newcols) {
 }
 
 static void mac_initpalette(Session *s) {
-    int i;
 
     if (!HAVE_COLOR_QD())
        return;