mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-22 19:24:22 -04:00
23 lines
481 B
Plaintext
23 lines
481 B
Plaintext
$NetBSD: patch-ab,v 1.1 2006/06/25 13:46:37 wiz Exp $
|
|
|
|
Fixes gcc4 error:
|
|
error: invalid lvalue in decrement
|
|
|
|
--- src/bk_edit_recent_document.c.orig 2003-11-29 13:14:14.000000000 +0000
|
|
+++ src/bk_edit_recent_document.c
|
|
@@ -115,10 +115,13 @@ static void ok (GtkWidget *dialog, void
|
|
{
|
|
GList *list = config_recent_documents_list_get (conf);
|
|
GList *l = list;
|
|
+ int len;
|
|
+
|
|
+ len = (int) which;
|
|
|
|
while (l)
|
|
{
|
|
- if (((int) which)-- == 0)
|
|
+ if (len-- == 0)
|
|
{
|
|
break;
|
|
}
|