summary refs log tree commit diff stats
path: root/plugins/upd
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2011-01-12 07:05:07 +0100
committerberkeviktor@aol.com <berkeviktor@aol.com>2011-01-12 07:05:07 +0100
commitf6fd353f767b9c6d74fc10dbf7f2e675f36e57d4 (patch)
treeebbf9baf1e52a362c46f223ddf4f05a7fff14bac /plugins/upd
parent522c6c9f16ed0f8837e897e9e67d62a6f7a11fd0 (diff)
minor plugin fixes
Diffstat (limited to 'plugins/upd')
-rw-r--r--plugins/upd/upd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/upd/upd.c b/plugins/upd/upd.c
index 0186ed3c..0c1cc1e7 100644
--- a/plugins/upd/upd.c
+++ b/plugins/upd/upd.c
@@ -31,7 +31,7 @@
 
 static xchat_plugin *ph;   /* plugin handle */
 
-char*
+static char*
 check_version ()
 {
 	HINTERNET hINet, hFile;
@@ -57,15 +57,17 @@ check_version ()
 			buffer[dwRead] = 0;
 		}
 		
-		InternetCloseHandle (hFile);
 		return buffer;
+
+		InternetCloseHandle (hFile);
 	}
 	
 	InternetCloseHandle (hINet);
+
 	return "Unknown";
 }
 
-void
+static void
 print_version ()
 {
 	char *version = check_version ();