#! /bin/sh /usr/share/dpatch/dpatch-run
## 43_cdfsyntax.dpatch by Harald Hvaal <harald.hvaal@gmail.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Add missing comma to fix syntax in created CDF files.
@DPATCH@
--- a/bandwidthd.c.orig 2010-05-31 20:11:43.000000000 +0200
+++ b/bandwidthd.c 2010-05-31 20:11:50.000000000 +0200
@@ -910,7 +910,7 @@
HostIp2CharIp(IPData->ip, IPBuffer);
fprintf(cdf, "%s,%lu,", IPBuffer, IPData->timestamp);
Stats = &(IPData->Send);
- fprintf(cdf, "%llu,%llu,%llu,%llu,%llu,%llu,%llu,%llu", Stats->total, Stats->icmp, Stats->udp, Stats->tcp, Stats->ftp, Stats->http, Stats->mail, Stats->p2p);
+ fprintf(cdf, "%llu,%llu,%llu,%llu,%llu,%llu,%llu,%llu,", Stats->total, Stats->icmp, Stats->udp, Stats->tcp, Stats->ftp, Stats->http, Stats->mail, Stats->p2p);
Stats = &(IPData->Receive);
fprintf(cdf, "%llu,%llu,%llu,%llu,%llu,%llu,%llu,%llu\n", Stats->total, Stats->icmp, Stats->udp, Stats->tcp, Stats->ftp, Stats->http, Stats->mail, Stats->p2p);
}