On 2013/11/17 17:01, David Hill wrote:
> update net/mtr to 0.85.  Add --without-glib to prevent picking it up.
> Add patch to use %lld for time_t.

ah good, this works better than the previous updates I tried which
had problems with, iirc, the new IPv6 nameserver support.

> +       if (fmtinfo != NULL) fmtinfo = trim(fmtinfo);
> +-      printf("MTR.%s;%lu;%s;%s;%d;%s;%s;%d", MTR_VERSION, now, "OK", 
> Hostname,
> ++      printf("MTR.%s;%lld;%s;%s;%d;%s;%s;%d", MTR_VERSION, now, "OK", 
> Hostname,
> +              at+1, name, fmtinfo, last);
..
> +-      printf("MTR.%s;%lu;%s;%s;%d;%s;%d", MTR_VERSION, now, "OK", Hostname,
> ++      printf("MTR.%s;%lld;%s;%s;%d;%s;%d", MTR_VERSION, now, "OK", Hostname,
> +              at+1, name, last);

these aren't quite correct, now should be cast to (long long) as was done
in the diff which was committed upstream

https://github.com/traviscross/mtr/commit/57f2d65e8fd5.patch


Reply via email to