diff options
author | marcus <marcus@FreeBSD.org> | 2003-04-10 17:04:59 +0000 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-04-10 17:04:59 +0000 |
commit | a2bf6d197fc99cae3a061f9adaa29a96b26b619e (patch) | |
tree | 6a2ec32c7c5c037fa008313b454f3eacffb97024 /www/galeon | |
parent | 5d5ebd740f2a5398ba151e223cb4d4c8d19918a8 (diff) | |
download | FreeBSD-ports-a2bf6d197fc99cae3a061f9adaa29a96b26b619e.zip FreeBSD-ports-a2bf6d197fc99cae3a061f9adaa29a96b26b619e.tar.gz |
Fix a signed vs. unsigned problem with Mozilla 1.3.
Diffstat (limited to 'www/galeon')
-rw-r--r-- | www/galeon/files/patch-src_mozilla_mozilla.cpp | 29 | ||||
-rw-r--r-- | www/galeon/files/patch-src_mozilla_mozilla.h | 11 |
2 files changed, 23 insertions, 17 deletions
diff --git a/www/galeon/files/patch-src_mozilla_mozilla.cpp b/www/galeon/files/patch-src_mozilla_mozilla.cpp index 8991f68..bed29c1 100644 --- a/www/galeon/files/patch-src_mozilla_mozilla.cpp +++ b/www/galeon/files/patch-src_mozilla_mozilla.cpp @@ -1,5 +1,5 @@ ---- src/mozilla/mozilla.cpp.orig Mon Apr 7 23:44:18 2003 -+++ src/mozilla/mozilla.cpp Mon Apr 7 23:44:29 2003 +--- src/mozilla/mozilla.cpp.orig Sat Feb 15 14:19:59 2003 ++++ src/mozilla/mozilla.cpp Thu Apr 10 13:01:20 2003 @@ -1041,17 +1041,17 @@ * mozilla_list_cookies: get a list of all saved cookies */ @@ -81,12 +81,15 @@ return cookies; } -@@ -1102,16 +1102,16 @@ +@@ -1102,16 +1102,20 @@ */ extern "C" GList * --mozilla_get_permissions (int type) ++#if MOZILLA_SNAPSHOT > 6 +mozilla_get_permissions (guint type) ++#else + mozilla_get_permissions (int type) ++#endif { GList *permissions = NULL; nsresult result; @@ -102,7 +105,7 @@ PRBool enumResult; for (permissionEnumerator->HasMoreElements(&enumResult) ; enumResult == PR_TRUE ; -@@ -1119,32 +1119,50 @@ +@@ -1119,32 +1123,50 @@ { nsCOMPtr<nsIPermission> nsPermission; result = permissionEnumerator-> @@ -168,7 +171,7 @@ return permissions; }; -@@ -1152,16 +1170,25 @@ +@@ -1152,16 +1174,25 @@ * mozilla_set_url_permission: change permissions for a URL */ extern "C" void @@ -200,7 +203,7 @@ #endif } -@@ -1172,10 +1199,10 @@ +@@ -1172,10 +1203,10 @@ */ extern "C" void @@ -213,7 +216,7 @@ } /** -@@ -1188,17 +1215,17 @@ +@@ -1188,17 +1219,17 @@ { nsresult result; nsCOMPtr<nsICookieManager> cookieManager = @@ -236,7 +239,7 @@ if (NS_FAILED(result)) return FALSE; }; return TRUE; -@@ -1210,21 +1237,21 @@ +@@ -1210,21 +1241,21 @@ * @type: type of permissions ( cookies or images ) */ extern "C" gboolean @@ -263,7 +266,7 @@ #endif if (NS_FAILED(result)) return FALSE; }; -@@ -1374,7 +1401,7 @@ +@@ -1374,7 +1405,7 @@ nsresult result = NS_ERROR_FAILURE; nsCOMPtr<nsIPasswordManager> passwordManager = @@ -272,7 +275,7 @@ nsCOMPtr<nsISimpleEnumerator> passwordEnumerator; if (type == PASSWORD_PASSWORD) result = passwordManager->GetEnumerator -@@ -1392,24 +1419,24 @@ +@@ -1392,24 +1423,24 @@ nsCOMPtr<nsIPassword> nsPassword; result = passwordEnumerator->GetNext (getter_AddRefs(nsPassword)); @@ -305,7 +308,7 @@ return passwords; } -@@ -1423,7 +1450,7 @@ +@@ -1423,7 +1454,7 @@ { nsresult result = NS_ERROR_FAILURE; nsCOMPtr<nsIPasswordManager> passwordManager = @@ -314,7 +317,7 @@ for (GList *passwords = g_list_first(gone) ; passwords!=NULL ; passwords = g_list_next(passwords)) -@@ -1435,14 +1462,14 @@ +@@ -1435,14 +1466,14 @@ (p->username); nsDependentString unicodeString(unicodeName); diff --git a/www/galeon/files/patch-src_mozilla_mozilla.h b/www/galeon/files/patch-src_mozilla_mozilla.h index ef0ffb2..ef074d6 100644 --- a/www/galeon/files/patch-src_mozilla_mozilla.h +++ b/www/galeon/files/patch-src_mozilla_mozilla.h @@ -1,6 +1,6 @@ ---- src/mozilla/mozilla.h.orig Mon Apr 7 23:44:55 2003 -+++ src/mozilla/mozilla.h Mon Apr 7 23:45:01 2003 -@@ -256,14 +256,14 @@ +--- src/mozilla/mozilla.h.orig Fri Oct 25 20:43:51 2002 ++++ src/mozilla/mozilla.h Thu Apr 10 13:02:14 2003 +@@ -256,14 +256,18 @@ char *force_character_set); /* Cookies manager */ @@ -10,10 +10,13 @@ GList *mozilla_list_cookies (void); -void mozilla_set_permission (GaleonEmbed *embed, gboolean permit, - int type); --GList *mozilla_get_permissions (int type); +void mozilla_set_permission (GaleonEmbed *embed, gboolean allow, + guint type); ++#if MOZILLA_SNAPSHOT > 6 +GList *mozilla_get_permissions (guint type); ++#else + GList *mozilla_get_permissions (int type); ++#endif gboolean mozilla_remove_cookies (GList *gone, gboolean block); -gboolean mozilla_remove_permissions (GList *gone, int type); +gboolean mozilla_remove_permissions (GList *gone, guint type); |