aboutsummaryrefslogtreecommitdiff
path: root/sysutils/gnome-system-monitor/files/patch-src_openfiles.c
blob: efdcef5f7882b670c8c3bbac9bc37894dfb3f2da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- src/openfiles.c.orig	Fri Jan 21 18:35:43 2005
+++ src/openfiles.c	Tue Jan 25 19:02:29 2005
@@ -8,6 +8,7 @@
 #include <netdb.h>
 #include <sys/types.h>
 #include <sys/socket.h>
+#include <netinet/in.h>
 #include <arpa/inet.h>
 #include "procman.h"
 #include "openfiles.h"
@@ -143,7 +144,7 @@
 	const glibtop_open_files_entry *o2 = b;
 
 	/* Falta manejar los diferentes tipos! */
-	return (o1->fd == o2->fd) && (o1->type == o1->type); // XXX!
+	return (o1->fd == o2->fd) && (o1->type == o1->type); /* XXX! */
 }
 
 
@@ -152,10 +153,10 @@
 {
 	ProcInfo *info;
 	GtkTreeModel *model;
-	glibtop_open_files_entry *openfiles;
-	glibtop_proc_open_files procmap;
 	GHashTable *new_maps;
 	gint i;
+	glibtop_open_files_entry *openfiles;
+	glibtop_proc_open_files procmap;
 
 	info = g_object_get_data (G_OBJECT (tree), "selected_info");
 	g_return_if_fail (info);