No longer need these patches

This commit is contained in:
couderc 2002-05-31 10:21:36 +00:00
parent 8d4adf6616
commit d7f59d50e8
2 changed files with 0 additions and 96 deletions

View File

@ -1,39 +0,0 @@
$OpenBSD: patch-src_IO_http_c,v 1.2 2002/05/02 19:16:25 couderc Exp $
--- src/IO/http.c.orig Wed Apr 10 03:10:36 2002
+++ src/IO/http.c Wed May 1 15:20:41 2002
@@ -237,7 +237,7 @@ static int Http_connect_socket(ChainLink
{
gint status;
struct sockaddr_in name;
- SocketData_t *S = a_Klist_get_data(ValidSocks, (gint)Info->LocalKey);
+ SocketData_t *S = a_Klist_get_data(ValidSocks, GPOINTER_TO_INT(Info->LocalKey));
/* Some OSes require this... */
memset(&name, 0, sizeof(name));
@@ -332,7 +332,7 @@ static gint Http_get(ChainLink *Info, vo
{
void *link;
const DilloUrl *Url = Data;
- SocketData_t *S = a_Klist_get_data(ValidSocks, (gint)Info->LocalKey);
+ SocketData_t *S = a_Klist_get_data(ValidSocks, GPOINTER_TO_INT(Info->LocalKey));
gchar hostname[256], *Host = hostname;
/* Reference Info data */
@@ -377,7 +377,7 @@ static gint Http_get(ChainLink *Info, vo
void
a_Http_ccc(int Op, int Branch, ChainLink *Info, void *Data, void *ExtraData)
{
- gint SKey = (gint)Info->LocalKey;
+ gint SKey = GPOINTER_TO_INT(Info->LocalKey);
SocketData_t *S = a_Klist_get_data(ValidSocks, SKey);
if ( Branch == 1 ) {
@@ -385,7 +385,7 @@ void
switch (Op) {
case OpStart:
SKey = Http_sock_new();
- Info->LocalKey = (void *) SKey;
+ Info->LocalKey = GPOINTER_TO_INT(SKey);
if (Http_get(Info, Data, ExtraData) < 0) {
DEBUG_MSG(2, " HTTP: new abort handler! #2\n");
S = a_Klist_get_data(ValidSocks, SKey);

View File

@ -1,57 +0,0 @@
$OpenBSD: patch-src_dw_style_c,v 1.2 2002/05/02 19:16:25 couderc Exp $
--- src/dw_style.c.orig Fri Apr 5 17:18:19 2002
+++ src/dw_style.c Wed May 1 14:48:35 2002
@@ -657,7 +657,7 @@ DwStyleColor* a_Dw_style_color_new (gint
{
DwStyleColor *color;
- color = g_hash_table_lookup (colors_table, (gconstpointer)color_val);
+ color = g_hash_table_lookup (colors_table, GINT_TO_POINTER(color_val));
if (color == NULL) {
color = g_new (DwStyleColor, 1);
color->ref_count = 0;
@@ -665,7 +665,7 @@ DwStyleColor* a_Dw_style_color_new (gint
Dw_style_color_create (color_val, window,
&color->color, &color->gc, 0);
- g_hash_table_insert (colors_table, (gpointer)color_val, color);
+ g_hash_table_insert (colors_table, GINT_TO_POINTER(color_val), color);
}
return color;
@@ -676,7 +676,7 @@ DwStyleColor* a_Dw_style_color_new (gint
*/
static void Dw_style_color_remove (DwStyleColor *color)
{
- g_hash_table_remove (colors_table, (gpointer)color->color_val);
+ g_hash_table_remove (colors_table, GINT_TO_POINTER(color->color_val));
gdk_gc_destroy (color->gc);
g_free (color);
}
@@ -691,7 +691,7 @@ DwStyleShadedColor* a_Dw_style_shaded_co
{
DwStyleShadedColor *color;
- color = g_hash_table_lookup (shaded_colors_table, (gconstpointer)color_val);
+ color = g_hash_table_lookup (shaded_colors_table, GINT_TO_POINTER(color_val));
if (color == NULL) {
color = g_new (DwStyleShadedColor, 1);
color->ref_count = 0;
@@ -703,7 +703,7 @@ DwStyleShadedColor* a_Dw_style_shaded_co
&color->color_dark, &color->gc_dark, -1);
Dw_style_color_create (color_val, window,
&color->color_light, &color->gc_light, +1);
- g_hash_table_insert (shaded_colors_table, (gpointer)color_val, color);
+ g_hash_table_insert (shaded_colors_table, GINT_TO_POINTER(color_val), color);
}
return color;
@@ -714,7 +714,7 @@ DwStyleShadedColor* a_Dw_style_shaded_co
*/
static void Dw_style_shaded_color_remove (DwStyleShadedColor *color)
{
- g_hash_table_remove (shaded_colors_table, (gpointer)color->color_val);
+ g_hash_table_remove (shaded_colors_table, GINT_TO_POINTER(color->color_val));
gdk_gc_destroy (color->gc);
gdk_gc_destroy (color->gc_dark);
gdk_gc_destroy (color->gc_light);