1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00
freebsd-ports/net/amule-devel/files/patch-html.c
Edwin Groothuis ad93e1744d [NEW PORT] net/amule-devel (aMule 2.0.0rc7)
This port is designed to manage the "unstable" branch of
	aMule, currently aMule 2.0.0rc7.

PR:		ports/73502
Submitted by:	Ganael LAPLANCHE <ganael.laplanche@martymac.com>
2004-12-15 07:13:05 +00:00

27 lines
931 B
C

--- src/utils/cas/html.c.orig Wed Sep 29 01:21:07 2004
+++ src/utils/cas/html.c Sat Oct 23 04:30:24 2004
@@ -50,11 +50,6 @@
FILE *temp;
- snprintf(version, 25, "cas %s", CAS_VERSION);
- snprintf(upload, 25, "%s kB/s", stats[6]);
- snprintf(download, 25, "%s kB/s", stats[5]);
-
-
char *search[] = {"#VERSION#", "#CLIENT#", "#NICK#", "#UPLOADRATE#" ,
"#DOWNLOADRATE#" , "#QUEUE#" , "#NUMSHARE#" , "#SESSIONUP#" ,
"#SESSIONDOWN#" , "#TOTALUP#", "#TOTALDOWN#" , "#SERVER#" , "#IP#",
@@ -63,6 +58,11 @@
char *repl[] = { version , lines[0] , stats[9] , upload , download ,
stats[7] , stats[8] , stats[14] , stats[13] , stats[11] , stats[10] ,
stats[1] , stats[2] , stats[3] };
+
+
+ snprintf(version, 25, "cas %s", CAS_VERSION);
+ snprintf(upload, 25, "%s kB/s", stats[6]);
+ snprintf(download, 25, "%s kB/s", stats[5]);
// get some memory to read the template into
if ((fd = open (template, O_RDONLY)) < 0)