summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorjoerg <joerg>2013-03-02 18:13:49 +0000
committerjoerg <joerg>2013-03-02 18:13:49 +0000
commit2d385222294c1460166f69d80489b5ddb2eb1f2e (patch)
tree74832511b2c1c9c981944ce5674602645c01bf93 /editors
parent93f771ee38d31f9e15b756df6dadce10080d22c1 (diff)
downloadpkgsrc-2d385222294c1460166f69d80489b5ddb2eb1f2e.tar.gz
Return a value from non-void functions.
Diffstat (limited to 'editors')
-rw-r--r--editors/tea/distinfo5
-rw-r--r--editors/tea/patches/patch-src_image__browser.c22
-rw-r--r--editors/tea/patches/patch-src_rox__strings.c22
-rw-r--r--editors/tea/patches/patch-src_tea__text__document.c53
4 files changed, 101 insertions, 1 deletions
diff --git a/editors/tea/distinfo b/editors/tea/distinfo
index 41e3b6ce370..d11f35b427c 100644
--- a/editors/tea/distinfo
+++ b/editors/tea/distinfo
@@ -1,7 +1,10 @@
-$NetBSD: distinfo,v 1.1.1.1 2007/04/14 04:49:08 reed Exp $
+$NetBSD: distinfo,v 1.2 2013/03/02 18:13:49 joerg Exp $
SHA1 (tea-16.0.5.tar.bz2) = d1c38a7dec406a5a935373fea35b650f04a0331c
RMD160 (tea-16.0.5.tar.bz2) = 16ee63c77486b000d322704607af1e8354bc5015
Size (tea-16.0.5.tar.bz2) = 443526 bytes
SHA1 (patch-aa) = 6d92c32956d46304703d0267c99b97075b1a349c
SHA1 (patch-ab) = d9643f3fc1469744406a4c6de6aeb96f4709cbbb
+SHA1 (patch-src_image__browser.c) = a31f4e1d9cfaa691c5c1f7a86c81cc8b8cef4e84
+SHA1 (patch-src_rox__strings.c) = 7f50cf35d66b2529a2a19ca9628824f70c9c0ffa
+SHA1 (patch-src_tea__text__document.c) = 8c4cf064f10a1fa87ac2b0fb1ac9dbf0a609b410
diff --git a/editors/tea/patches/patch-src_image__browser.c b/editors/tea/patches/patch-src_image__browser.c
new file mode 100644
index 00000000000..b3b5df4397e
--- /dev/null
+++ b/editors/tea/patches/patch-src_image__browser.c
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_image__browser.c,v 1.1 2013/03/02 18:13:49 joerg Exp $
+
+--- src/image_browser.c.orig 2013-03-01 14:29:19.000000000 +0000
++++ src/image_browser.c
+@@ -654,7 +654,7 @@ static void on_mni_copy_pixbuf (GtkMenuI
+ {
+ GtkClipboard *c = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD);
+ if (! c)
+- return NULL;
++ return;
+
+ t_image_viewer *instance = user_data;
+ gtk_clipboard_set_image (c, gtk_image_get_pixbuf (instance->image));
+@@ -1005,7 +1005,7 @@ GtkWidget* create_image_browser (t_image
+ void image_browser_update (t_image_plane *instance)
+ {
+ if (! instance)
+- return NULL;
++ return;
+
+ gchar *filename;
+ gchar *utf;
diff --git a/editors/tea/patches/patch-src_rox__strings.c b/editors/tea/patches/patch-src_rox__strings.c
new file mode 100644
index 00000000000..8b6587d91b3
--- /dev/null
+++ b/editors/tea/patches/patch-src_rox__strings.c
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_rox__strings.c,v 1.1 2013/03/02 18:13:49 joerg Exp $
+
+--- src/rox_strings.c.orig 2013-03-01 14:28:06.000000000 +0000
++++ src/rox_strings.c
+@@ -2222,7 +2222,7 @@ gchar* copied_from_browser_to_ftext (con
+ gchar* get_charset_from_meta (const gchar *text)
+ {
+ if (! text)
+- return;
++ return NULL;
+
+ gchar *s1 = strstr (text, "<meta");
+ if (! s1)
+@@ -2507,7 +2507,7 @@ gchar* str_before_sep (const gchar *str,
+ gchar* str_after_sep (const gchar *str, const gchar *sep)
+ {
+ if ((str == NULL) || (sep == NULL))
+- return;
++ return NULL;
+
+ gchar *t = strstr (str, sep);
+ if (t)
diff --git a/editors/tea/patches/patch-src_tea__text__document.c b/editors/tea/patches/patch-src_tea__text__document.c
new file mode 100644
index 00000000000..be492c607b5
--- /dev/null
+++ b/editors/tea/patches/patch-src_tea__text__document.c
@@ -0,0 +1,53 @@
+$NetBSD: patch-src_tea__text__document.c,v 1.1 2013/03/02 18:13:49 joerg Exp $
+
+--- src/tea_text_document.c.orig 2013-03-01 14:27:14.000000000 +0000
++++ src/tea_text_document.c
+@@ -2238,7 +2238,7 @@ gchar* doc_get_sel (t_note_page *doc)
+ void doc_select_line (t_note_page *doc, gint line)
+ {
+ if (! doc)
+- return NULL;
++ return;
+
+ GtkTextIter itstart, itend;
+ gtk_text_buffer_get_iter_at_line (doc->text_buffer, &itstart, line - 1);
+@@ -3190,7 +3190,7 @@ void doc_rep_sel (t_note_page *page, con
+ gchar* get_c_url (t_note_page *doc)
+ {
+ if (! doc)
+- return;
++ return NULL;
+
+ gchar *dir;
+ gchar *filename;
+@@ -3282,7 +3282,7 @@ gboolean doc_search_f (t_note_page *doc,
+ gboolean doc_search_f_next (t_note_page *doc)
+ {
+ if (! doc)
+- return;
++ return FALSE;
+
+ gboolean result = FALSE;
+ if (! doc->last_searched_text)
+@@ -4812,18 +4812,18 @@ gboolean text_doc_save_silent (t_note_pa
+ t_note_page* doc_is_already_opened (const gchar *filename)
+ {
+ if (! filename)
+- return;
++ return NULL;
+
+ gint i = get_n_page_by_filename (filename);
+
+ if (i != -1)
+ {
+ gtk_notebook_set_current_page (notebook1, i);
+- return;
++ return NULL;
+ }
+
+ if (! g_file_test (filename, G_FILE_TEST_EXISTS))
+- return;
++ return NULL;
+
+ t_note_page *t = open_file_std (filename);
+ cur_text_doc = t;