From 5dcad1fbe4a0c59eb8bb3462e25e98bb1223a9a3 Mon Sep 17 00:00:00 2001 From: naddy Date: Thu, 28 Feb 2002 21:01:31 +0000 Subject: [PATCH] make format string specifiers and actual args agree for long long/long/int ok pvalchev@, maintainer --- .../patches/patch-src_downloads_c | 21 +++++++++++++++++++ net/gtk-gnutella/patches/patch-src_filter_h | 11 ++++++++++ net/gtk-gnutella/patches/patch-src_gui_c | 12 +++++++++++ 3 files changed, 44 insertions(+) create mode 100644 net/gtk-gnutella/patches/patch-src_downloads_c create mode 100644 net/gtk-gnutella/patches/patch-src_filter_h create mode 100644 net/gtk-gnutella/patches/patch-src_gui_c diff --git a/net/gtk-gnutella/patches/patch-src_downloads_c b/net/gtk-gnutella/patches/patch-src_downloads_c new file mode 100644 index 00000000000..64ea3fa033e --- /dev/null +++ b/net/gtk-gnutella/patches/patch-src_downloads_c @@ -0,0 +1,21 @@ +$OpenBSD: patch-src_downloads_c,v 1.1 2002/02/28 21:01:31 naddy Exp $ +--- src/downloads.c.orig Thu Feb 28 21:36:14 2002 ++++ src/downloads.c Thu Feb 28 21:37:02 2002 +@@ -1562,7 +1562,7 @@ static gboolean download_overlap_check(s + */ + + if (d->skip != buf.st_size) { +- g_warning("File '%s' changed size (now %ld, but was %d)", ++ g_warning("File '%s' changed size (now %lld, but was %d)", + d->output_name, buf.st_size, d->skip); + download_stop(d, GTA_DL_STOPPED, "Stopped (Output file size changed)"); + goto out; +@@ -1827,7 +1827,7 @@ static void download_request(struct down + if (stat(dl_tmp, &st) != -1) { + /* File exists, we'll append the data to it */ + if (st.st_size != d->skip) { +- g_warning("File '%s' changed size (now %ld, but was %d)", ++ g_warning("File '%s' changed size (now %lld, but was %d)", + d->output_name, st.st_size, d->skip); + download_stop(d, GTA_DL_STOPPED, + "Stopped (Output file size changed)"); diff --git a/net/gtk-gnutella/patches/patch-src_filter_h b/net/gtk-gnutella/patches/patch-src_filter_h new file mode 100644 index 00000000000..d106bb4f462 --- /dev/null +++ b/net/gtk-gnutella/patches/patch-src_filter_h @@ -0,0 +1,11 @@ +$OpenBSD: patch-src_filter_h,v 1.1 2002/02/28 21:01:31 naddy Exp $ +--- src/filter.h.orig Thu Feb 28 21:37:33 2002 ++++ src/filter.h Thu Feb 28 21:37:46 2002 +@@ -2,6 +2,7 @@ + #ifndef __filter_h__ + #define __filter_h__ + ++#include + #include + #include + diff --git a/net/gtk-gnutella/patches/patch-src_gui_c b/net/gtk-gnutella/patches/patch-src_gui_c new file mode 100644 index 00000000000..bb84d4cadc7 --- /dev/null +++ b/net/gtk-gnutella/patches/patch-src_gui_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-src_gui_c,v 1.1 2002/02/28 21:01:31 naddy Exp $ +--- src/gui.c.orig Thu Feb 28 21:39:22 2002 ++++ src/gui.c Thu Feb 28 21:42:09 2002 +@@ -583,7 +583,7 @@ void gui_update_download(struct download + break; + + case GTA_DL_TIMEOUT_WAIT: +- g_snprintf(gui_tmp, sizeof(gui_tmp), "Retry in %lds", ++ g_snprintf(gui_tmp, sizeof(gui_tmp), "Retry in %ds", + d->timeout_delay - (now - d->last_update)); + a = gui_tmp; + break;