# HG changeset patch
# User Matthias Andree <matthias.andree@gmx.de>
# Date 1210495963 -7200
# Branch HEAD
# Node ID 09b0363cdf54c414fc7a94b8034ea67b242ab439
# Parent 98c39c5187a957c12ee99a0d7322634723f1e866
In debug output, cast size_t arguments to long for consistency with
printf %ld argument.
diff -r 98c39c5187a9 -r 09b0363cdf54 rfc3676.c
|
a
|
b
|
|
| 101 | 101 | |
| 102 | 102 | width = quote_width (s, ql); |
| 103 | 103 | |
| 104 | | dprint (4, (debugfile, "f-f: line [%s], width = %ld\n", NONULL(line), width)); |
| | 104 | dprint (4, (debugfile, "f-f: line [%s], width = %ld\n", NONULL(line), (long)width)); |
| 105 | 105 | |
| 106 | 106 | for (p = (char *)line, words = 0; (p = strsep (&line, " ")) != NULL ; ) |
| 107 | 107 | { |
| 108 | 108 | w = mutt_strwidth (NONULL(p)); |
| 109 | | dprint (4, (debugfile, "f-f: word [%s], width = %ld, line = %ld\n", NONULL(p), w, *sofar)); |
| | 109 | dprint (4, (debugfile, "f-f: word [%s], width = %ld, line = %ld\n", NONULL(p), (long)w, (long)*sofar)); |
| 110 | 110 | if (w + 1 + (*sofar) > width) |
| 111 | 111 | { |
| 112 | 112 | /* line would be too long, flush */ |
| 113 | | dprint (4, (debugfile, "f-f: width: %ld\n", *sofar)); |
| | 113 | dprint (4, (debugfile, "f-f: width: %ld\n", (long)*sofar)); |
| 114 | 114 | state_puts (" \n", s); |
| 115 | 115 | *sofar = 0; |
| 116 | 116 | } |