From f6fd353f767b9c6d74fc10dbf7f2e675f36e57d4 Mon Sep 17 00:00:00 2001 From: "berkeviktor@aol.com" Date: Wed, 12 Jan 2011 07:05:07 +0100 Subject: [PATCH] minor plugin fixes --- plugins/checksum/checksum.c | 2 +- plugins/upd/upd.c | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/checksum/checksum.c b/plugins/checksum/checksum.c index dcc54eb4..b5bf1bc5 100644 --- a/plugins/checksum/checksum.c +++ b/plugins/checksum/checksum.c @@ -161,7 +161,7 @@ get_max_hash_size () } } -void +static void print_size () { xchat_printf (ph, "File size limit for checksums (in bytes): %llu", get_max_hash_size ()); 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 ();