SOURCES: bwm-ng-procfile.patch (NEW) - new

adamg adamg at pld-linux.org
Mon Apr 17 13:13:54 CEST 2006


Author: adamg                        Date: Mon Apr 17 11:13:54 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- new

---- Files affected:
SOURCES:
   bwm-ng-procfile.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/bwm-ng-procfile.patch
diff -u /dev/null SOURCES/bwm-ng-procfile.patch:1.1
--- /dev/null	Mon Apr 17 13:13:54 2006
+++ SOURCES/bwm-ng-procfile.patch	Mon Apr 17 13:13:49 2006
@@ -0,0 +1,11 @@
+--- bwm-ng-0.5/src/retrieve.c~	2005-02-19 07:47:12.000000000 +0100
++++ bwm-ng-0.5/src/retrieve.c	2006-04-17 13:11:57.320895500 +0200
+@@ -140,7 +140,7 @@
+ 
+ 	memset(&stats,0,(size_t)sizeof(t_iface_speed_stats)); /* init it */
+     /* dont open proc_net_dev if netstat_i is requested, else try to open and if it fails fallback */
+-    if (!(f=fopen(PROC_FILE,"r"))) {
++    if (!(f=fopen(PROC_NET_DEV,"r"))) {
+ 		deinit("open of procfile failed: %s\n",strerror(errno));
+ 	}
+ 	buffer=(char *)malloc(MAX_LINE_BUFFER);
================================================================


More information about the pld-cvs-commit mailing list