summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-10-24 10:38:53 +0000
committerJim Meyering <jim@meyering.net>2001-10-24 10:38:53 +0000
commit93a207af8d199e32f9971b99e7a0e398b7d0c5b6 (patch)
treef554e1e8309e90526287d0e37773257f4e6580fd /src
parentfd77bc4a788a6d17ce17911d2af5ef6f8be3f1fd (diff)
downloadcoreutils-93a207af8d199e32f9971b99e7a0e398b7d0c5b6.tar.xz
Remove as many instances of 'unsigned' as
possible, as some of them were not conforming to ANSI C, and they made the code hard to read. Avoiding 'unsigned' cuts down on the number of casts. (newline_character, space_character, save_char): Now char, not unsigned char. (obuf): Now char *, not unsigned char *. (ascii_to_ebcdic, ascii_to_ibm, ebcdic_to_ascii): Now char[], not unsigned char[]. (translate_charset, translate_buffer, swab_buffer, skip, copy_simple, copy_with_block, copy_with_unblock): Arg now points to char, not unsigned char. All callers changed. (translate_charset, parse_conversion, apply_translations): Use int index, not unsigned int. (bit_count): Arg is now int, not unsigned int. Callers not changed, as they already assumed this. (translate_buffer): Cast char to unsigned char before using it as a subscript. (swab_buffer): Returns char *, not unsigned char *. (dd_copy): Use char, not unsigned char, for buffers. Use size_t for possibly-large index, not unsigned int.
Diffstat (limited to 'src')
-rw-r--r--src/dd.c265
1 files changed, 132 insertions, 133 deletions
diff --git a/src/dd.c b/src/dd.c
index 9ba36dd9d..1267e9e73 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -135,11 +135,11 @@ static uintmax_t r_truncate = 0;
/* Output representation of newline and space characters.
They change if we're converting to EBCDIC. */
-static unsigned char newline_character = '\n';
-static unsigned char space_character = ' ';
+static char newline_character = '\n';
+static char space_character = ' ';
/* Output buffer. */
-static unsigned char *obuf;
+static char *obuf;
/* Current index into `obuf'. */
static size_t oc = 0;
@@ -172,112 +172,112 @@ static struct conversion conversions[] =
/* Translation table formed by applying successive transformations. */
static unsigned char trans_table[256];
-static unsigned char const ascii_to_ebcdic[] =
+static char const ascii_to_ebcdic[] =
{
- 0, 01, 02, 03, 067, 055, 056, 057,
- 026, 05, 045, 013, 014, 015, 016, 017,
- 020, 021, 022, 023, 074, 075, 062, 046,
- 030, 031, 077, 047, 034, 035, 036, 037,
- 0100, 0117, 0177, 0173, 0133, 0154, 0120, 0175,
- 0115, 0135, 0134, 0116, 0153, 0140, 0113, 0141,
- 0360, 0361, 0362, 0363, 0364, 0365, 0366, 0367,
- 0370, 0371, 0172, 0136, 0114, 0176, 0156, 0157,
- 0174, 0301, 0302, 0303, 0304, 0305, 0306, 0307,
- 0310, 0311, 0321, 0322, 0323, 0324, 0325, 0326,
- 0327, 0330, 0331, 0342, 0343, 0344, 0345, 0346,
- 0347, 0350, 0351, 0112, 0340, 0132, 0137, 0155,
- 0171, 0201, 0202, 0203, 0204, 0205, 0206, 0207,
- 0210, 0211, 0221, 0222, 0223, 0224, 0225, 0226,
- 0227, 0230, 0231, 0242, 0243, 0244, 0245, 0246,
- 0247, 0250, 0251, 0300, 0152, 0320, 0241, 07,
- 040, 041, 042, 043, 044, 025, 06, 027,
- 050, 051, 052, 053, 054, 011, 012, 033,
- 060, 061, 032, 063, 064, 065, 066, 010,
- 070, 071, 072, 073, 04, 024, 076, 0341,
- 0101, 0102, 0103, 0104, 0105, 0106, 0107, 0110,
- 0111, 0121, 0122, 0123, 0124, 0125, 0126, 0127,
- 0130, 0131, 0142, 0143, 0144, 0145, 0146, 0147,
- 0150, 0151, 0160, 0161, 0162, 0163, 0164, 0165,
- 0166, 0167, 0170, 0200, 0212, 0213, 0214, 0215,
- 0216, 0217, 0220, 0232, 0233, 0234, 0235, 0236,
- 0237, 0240, 0252, 0253, 0254, 0255, 0256, 0257,
- 0260, 0261, 0262, 0263, 0264, 0265, 0266, 0267,
- 0270, 0271, 0272, 0273, 0274, 0275, 0276, 0277,
- 0312, 0313, 0314, 0315, 0316, 0317, 0332, 0333,
- 0334, 0335, 0336, 0337, 0352, 0353, 0354, 0355,
- 0356, 0357, 0372, 0373, 0374, 0375, 0376, 0377
+ '\000', '\001', '\002', '\003', '\067', '\055', '\056', '\057',
+ '\026', '\005', '\045', '\013', '\014', '\015', '\016', '\017',
+ '\020', '\021', '\022', '\023', '\074', '\075', '\062', '\046',
+ '\030', '\031', '\077', '\047', '\034', '\035', '\036', '\037',
+ '\100', '\117', '\177', '\173', '\133', '\154', '\120', '\175',
+ '\115', '\135', '\134', '\116', '\153', '\140', '\113', '\141',
+ '\360', '\361', '\362', '\363', '\364', '\365', '\366', '\367',
+ '\370', '\371', '\172', '\136', '\114', '\176', '\156', '\157',
+ '\174', '\301', '\302', '\303', '\304', '\305', '\306', '\307',
+ '\310', '\311', '\321', '\322', '\323', '\324', '\325', '\326',
+ '\327', '\330', '\331', '\342', '\343', '\344', '\345', '\346',
+ '\347', '\350', '\351', '\112', '\340', '\132', '\137', '\155',
+ '\171', '\201', '\202', '\203', '\204', '\205', '\206', '\207',
+ '\210', '\211', '\221', '\222', '\223', '\224', '\225', '\226',
+ '\227', '\230', '\231', '\242', '\243', '\244', '\245', '\246',
+ '\247', '\250', '\251', '\300', '\152', '\320', '\241', '\007',
+ '\040', '\041', '\042', '\043', '\044', '\025', '\006', '\027',
+ '\050', '\051', '\052', '\053', '\054', '\011', '\012', '\033',
+ '\060', '\061', '\032', '\063', '\064', '\065', '\066', '\010',
+ '\070', '\071', '\072', '\073', '\004', '\024', '\076', '\341',
+ '\101', '\102', '\103', '\104', '\105', '\106', '\107', '\110',
+ '\111', '\121', '\122', '\123', '\124', '\125', '\126', '\127',
+ '\130', '\131', '\142', '\143', '\144', '\145', '\146', '\147',
+ '\150', '\151', '\160', '\161', '\162', '\163', '\164', '\165',
+ '\166', '\167', '\170', '\200', '\212', '\213', '\214', '\215',
+ '\216', '\217', '\220', '\232', '\233', '\234', '\235', '\236',
+ '\237', '\240', '\252', '\253', '\254', '\255', '\256', '\257',
+ '\260', '\261', '\262', '\263', '\264', '\265', '\266', '\267',
+ '\270', '\271', '\272', '\273', '\274', '\275', '\276', '\277',
+ '\312', '\313', '\314', '\315', '\316', '\317', '\332', '\333',
+ '\334', '\335', '\336', '\337', '\352', '\353', '\354', '\355',
+ '\356', '\357', '\372', '\373', '\374', '\375', '\376', '\377'
};
-static unsigned char const ascii_to_ibm[] =
+static char const ascii_to_ibm[] =
{
- 0, 01, 02, 03, 067, 055, 056, 057,
- 026, 05, 045, 013, 014, 015, 016, 017,
- 020, 021, 022, 023, 074, 075, 062, 046,
- 030, 031, 077, 047, 034, 035, 036, 037,
- 0100, 0132, 0177, 0173, 0133, 0154, 0120, 0175,
- 0115, 0135, 0134, 0116, 0153, 0140, 0113, 0141,
- 0360, 0361, 0362, 0363, 0364, 0365, 0366, 0367,
- 0370, 0371, 0172, 0136, 0114, 0176, 0156, 0157,
- 0174, 0301, 0302, 0303, 0304, 0305, 0306, 0307,
- 0310, 0311, 0321, 0322, 0323, 0324, 0325, 0326,
- 0327, 0330, 0331, 0342, 0343, 0344, 0345, 0346,
- 0347, 0350, 0351, 0255, 0340, 0275, 0137, 0155,
- 0171, 0201, 0202, 0203, 0204, 0205, 0206, 0207,
- 0210, 0211, 0221, 0222, 0223, 0224, 0225, 0226,
- 0227, 0230, 0231, 0242, 0243, 0244, 0245, 0246,
- 0247, 0250, 0251, 0300, 0117, 0320, 0241, 07,
- 040, 041, 042, 043, 044, 025, 06, 027,
- 050, 051, 052, 053, 054, 011, 012, 033,
- 060, 061, 032, 063, 064, 065, 066, 010,
- 070, 071, 072, 073, 04, 024, 076, 0341,
- 0101, 0102, 0103, 0104, 0105, 0106, 0107, 0110,
- 0111, 0121, 0122, 0123, 0124, 0125, 0126, 0127,
- 0130, 0131, 0142, 0143, 0144, 0145, 0146, 0147,
- 0150, 0151, 0160, 0161, 0162, 0163, 0164, 0165,
- 0166, 0167, 0170, 0200, 0212, 0213, 0214, 0215,
- 0216, 0217, 0220, 0232, 0233, 0234, 0235, 0236,
- 0237, 0240, 0252, 0253, 0254, 0255, 0256, 0257,
- 0260, 0261, 0262, 0263, 0264, 0265, 0266, 0267,
- 0270, 0271, 0272, 0273, 0274, 0275, 0276, 0277,
- 0312, 0313, 0314, 0315, 0316, 0317, 0332, 0333,
- 0334, 0335, 0336, 0337, 0352, 0353, 0354, 0355,
- 0356, 0357, 0372, 0373, 0374, 0375, 0376, 0377
+ '\000', '\001', '\002', '\003', '\067', '\055', '\056', '\057',
+ '\026', '\005', '\045', '\013', '\014', '\015', '\016', '\017',
+ '\020', '\021', '\022', '\023', '\074', '\075', '\062', '\046',
+ '\030', '\031', '\077', '\047', '\034', '\035', '\036', '\037',
+ '\100', '\132', '\177', '\173', '\133', '\154', '\120', '\175',
+ '\115', '\135', '\134', '\116', '\153', '\140', '\113', '\141',
+ '\360', '\361', '\362', '\363', '\364', '\365', '\366', '\367',
+ '\370', '\371', '\172', '\136', '\114', '\176', '\156', '\157',
+ '\174', '\301', '\302', '\303', '\304', '\305', '\306', '\307',
+ '\310', '\311', '\321', '\322', '\323', '\324', '\325', '\326',
+ '\327', '\330', '\331', '\342', '\343', '\344', '\345', '\346',
+ '\347', '\350', '\351', '\255', '\340', '\275', '\137', '\155',
+ '\171', '\201', '\202', '\203', '\204', '\205', '\206', '\207',
+ '\210', '\211', '\221', '\222', '\223', '\224', '\225', '\226',
+ '\227', '\230', '\231', '\242', '\243', '\244', '\245', '\246',
+ '\247', '\250', '\251', '\300', '\117', '\320', '\241', '\007',
+ '\040', '\041', '\042', '\043', '\044', '\025', '\006', '\027',
+ '\050', '\051', '\052', '\053', '\054', '\011', '\012', '\033',
+ '\060', '\061', '\032', '\063', '\064', '\065', '\066', '\010',
+ '\070', '\071', '\072', '\073', '\004', '\024', '\076', '\341',
+ '\101', '\102', '\103', '\104', '\105', '\106', '\107', '\110',
+ '\111', '\121', '\122', '\123', '\124', '\125', '\126', '\127',
+ '\130', '\131', '\142', '\143', '\144', '\145', '\146', '\147',
+ '\150', '\151', '\160', '\161', '\162', '\163', '\164', '\165',
+ '\166', '\167', '\170', '\200', '\212', '\213', '\214', '\215',
+ '\216', '\217', '\220', '\232', '\233', '\234', '\235', '\236',
+ '\237', '\240', '\252', '\253', '\254', '\255', '\256', '\257',
+ '\260', '\261', '\262', '\263', '\264', '\265', '\266', '\267',
+ '\270', '\271', '\272', '\273', '\274', '\275', '\276', '\277',
+ '\312', '\313', '\314', '\315', '\316', '\317', '\332', '\333',
+ '\334', '\335', '\336', '\337', '\352', '\353', '\354', '\355',
+ '\356', '\357', '\372', '\373', '\374', '\375', '\376', '\377'
};
-static unsigned char const ebcdic_to_ascii[] =
+static char const ebcdic_to_ascii[] =
{
- 0, 01, 02, 03, 0234, 011, 0206, 0177,
- 0227, 0215, 0216, 013, 014, 015, 016, 017,
- 020, 021, 022, 023, 0235, 0205, 010, 0207,
- 030, 031, 0222, 0217, 034, 035, 036, 037,
- 0200, 0201, 0202, 0203, 0204, 012, 027, 033,
- 0210, 0211, 0212, 0213, 0214, 05, 06, 07,
- 0220, 0221, 026, 0223, 0224, 0225, 0226, 04,
- 0230, 0231, 0232, 0233, 024, 025, 0236, 032,
- 040, 0240, 0241, 0242, 0243, 0244, 0245, 0246,
- 0247, 0250, 0133, 056, 074, 050, 053, 041,
- 046, 0251, 0252, 0253, 0254, 0255, 0256, 0257,
- 0260, 0261, 0135, 044, 052, 051, 073, 0136,
- 055, 057, 0262, 0263, 0264, 0265, 0266, 0267,
- 0270, 0271, 0174, 054, 045, 0137, 076, 077,
- 0272, 0273, 0274, 0275, 0276, 0277, 0300, 0301,
- 0302, 0140, 072, 043, 0100, 047, 075, 042,
- 0303, 0141, 0142, 0143, 0144, 0145, 0146, 0147,
- 0150, 0151, 0304, 0305, 0306, 0307, 0310, 0311,
- 0312, 0152, 0153, 0154, 0155, 0156, 0157, 0160,
- 0161, 0162, 0313, 0314, 0315, 0316, 0317, 0320,
- 0321, 0176, 0163, 0164, 0165, 0166, 0167, 0170,
- 0171, 0172, 0322, 0323, 0324, 0325, 0326, 0327,
- 0330, 0331, 0332, 0333, 0334, 0335, 0336, 0337,
- 0340, 0341, 0342, 0343, 0344, 0345, 0346, 0347,
- 0173, 0101, 0102, 0103, 0104, 0105, 0106, 0107,
- 0110, 0111, 0350, 0351, 0352, 0353, 0354, 0355,
- 0175, 0112, 0113, 0114, 0115, 0116, 0117, 0120,
- 0121, 0122, 0356, 0357, 0360, 0361, 0362, 0363,
- 0134, 0237, 0123, 0124, 0125, 0126, 0127, 0130,
- 0131, 0132, 0364, 0365, 0366, 0367, 0370, 0371,
- 060, 061, 062, 063, 064, 065, 066, 067,
- 070, 071, 0372, 0373, 0374, 0375, 0376, 0377
+ '\000', '\001', '\002', '\003', '\234', '\011', '\206', '\177',
+ '\227', '\215', '\216', '\013', '\014', '\015', '\016', '\017',
+ '\020', '\021', '\022', '\023', '\235', '\205', '\010', '\207',
+ '\030', '\031', '\222', '\217', '\034', '\035', '\036', '\037',
+ '\200', '\201', '\202', '\203', '\204', '\012', '\027', '\033',
+ '\210', '\211', '\212', '\213', '\214', '\005', '\006', '\007',
+ '\220', '\221', '\026', '\223', '\224', '\225', '\226', '\004',
+ '\230', '\231', '\232', '\233', '\024', '\025', '\236', '\032',
+ '\040', '\240', '\241', '\242', '\243', '\244', '\245', '\246',
+ '\247', '\250', '\133', '\056', '\074', '\050', '\053', '\041',
+ '\046', '\251', '\252', '\253', '\254', '\255', '\256', '\257',
+ '\260', '\261', '\135', '\044', '\052', '\051', '\073', '\136',
+ '\055', '\057', '\262', '\263', '\264', '\265', '\266', '\267',
+ '\270', '\271', '\174', '\054', '\045', '\137', '\076', '\077',
+ '\272', '\273', '\274', '\275', '\276', '\277', '\300', '\301',
+ '\302', '\140', '\072', '\043', '\100', '\047', '\075', '\042',
+ '\303', '\141', '\142', '\143', '\144', '\145', '\146', '\147',
+ '\150', '\151', '\304', '\305', '\306', '\307', '\310', '\311',
+ '\312', '\152', '\153', '\154', '\155', '\156', '\157', '\160',
+ '\161', '\162', '\313', '\314', '\315', '\316', '\317', '\320',
+ '\321', '\176', '\163', '\164', '\165', '\166', '\167', '\170',
+ '\171', '\172', '\322', '\323', '\324', '\325', '\326', '\327',
+ '\330', '\331', '\332', '\333', '\334', '\335', '\336', '\337',
+ '\340', '\341', '\342', '\343', '\344', '\345', '\346', '\347',
+ '\173', '\101', '\102', '\103', '\104', '\105', '\106', '\107',
+ '\110', '\111', '\350', '\351', '\352', '\353', '\354', '\355',
+ '\175', '\112', '\113', '\114', '\115', '\116', '\117', '\120',
+ '\121', '\122', '\356', '\357', '\360', '\361', '\362', '\363',
+ '\134', '\237', '\123', '\124', '\125', '\126', '\127', '\130',
+ '\131', '\132', '\364', '\365', '\366', '\367', '\370', '\371',
+ '\060', '\061', '\062', '\063', '\064', '\065', '\066', '\067',
+ '\070', '\071', '\372', '\373', '\374', '\375', '\376', '\377'
};
void
@@ -329,9 +329,9 @@ Each KEYWORD may be:\n\
}
static void
-translate_charset (const unsigned char *new_trans)
+translate_charset (char const *new_trans)
{
- unsigned int i;
+ int i;
for (i = 0; i < 256; i++)
trans_table[i] = new_trans[trans_table[i]];
@@ -341,7 +341,7 @@ translate_charset (const unsigned char *new_trans)
/* Return the number of 1 bits in `i'. */
static int
-bit_count (register unsigned int i)
+bit_count (register int i)
{
register int set_bits;
@@ -478,7 +478,7 @@ static void
parse_conversion (char *str)
{
char *new;
- unsigned int i;
+ int i;
do
{
@@ -624,7 +624,7 @@ scanargs (int argc, char **argv)
static void
apply_translations (void)
{
- unsigned int i;
+ int i;
#define MX(a) (bit_count (conversions_mask & (a)))
if ((MX (C_ASCII | C_EBCDIC | C_IBM) > 1)
@@ -673,13 +673,13 @@ only one conv in {ascii,ebcdic,ibm}, {lcase,ucase}, {block,unblock}, {unblock,sy
to the NREAD bytes in BUF. */
static void
-translate_buffer (unsigned char *buf, size_t nread)
+translate_buffer (char *buf, size_t nread)
{
- unsigned char *cp;
+ char *cp;
size_t i;
for (i = nread, cp = buf; i; i--, cp++)
- *cp = trans_table[*cp];
+ *cp = trans_table[(unsigned char) *cp];
}
/* If nonnzero, the last char from the previous call to `swab_buffer'
@@ -687,17 +687,17 @@ translate_buffer (unsigned char *buf, size_t nread)
static int char_is_saved = 0;
/* Odd char from previous call. */
-static unsigned char saved_char;
+static char saved_char;
/* Swap NREAD bytes in BUF, plus possibly an initial char from the
previous call. If NREAD is odd, save the last char for the
next call. Return the new start of the BUF buffer. */
-static unsigned char *
-swab_buffer (unsigned char *buf, size_t *nread)
+static char *
+swab_buffer (char *buf, size_t *nread)
{
- unsigned char *bufstart = buf;
- register unsigned char *cp;
+ char *bufstart = buf;
+ register char *cp;
register int i;
/* Is a char left from last time? */
@@ -763,8 +763,7 @@ buggy_lseek_support (int fdesc)
nonzero. */
static void
-skip (int fdesc, char *file, uintmax_t records, size_t blocksize,
- unsigned char *buf)
+skip (int fdesc, char *file, uintmax_t records, size_t blocksize, char *buf)
{
off_t offset = records * blocksize;
@@ -797,10 +796,10 @@ skip (int fdesc, char *file, uintmax_t records, size_t blocksize,
/* Copy NREAD bytes of BUF, with no conversions. */
static void
-copy_simple (unsigned char const *buf, int nread)
+copy_simple (char const *buf, int nread)
{
int nfree; /* Number of unused bytes in `obuf'. */
- const unsigned char *start = buf; /* First uncopied char in BUF. */
+ const char *start = buf; /* First uncopied char in BUF. */
do
{
@@ -808,7 +807,7 @@ copy_simple (unsigned char const *buf, int nread)
if (nfree > nread)
nfree = nread;
- memcpy ((char *) (obuf + oc), (char *) start, nfree);
+ memcpy (obuf + oc, start, nfree);
nread -= nfree; /* Update the number of bytes left to copy. */
start += nfree;
@@ -824,7 +823,7 @@ copy_simple (unsigned char const *buf, int nread)
replacing the newline with trailing spaces). */
static void
-copy_with_block (unsigned char const *buf, size_t nread)
+copy_with_block (char const *buf, size_t nread)
{
size_t i;
@@ -856,10 +855,10 @@ copy_with_block (unsigned char const *buf, size_t nread)
with a newline). */
static void
-copy_with_unblock (unsigned char const *buf, size_t nread)
+copy_with_unblock (char const *buf, size_t nread)
{
size_t i;
- unsigned char c;
+ char c;
static int pending_spaces = 0;
for (i = 0; i < nread; i++)
@@ -893,9 +892,9 @@ copy_with_unblock (unsigned char const *buf, size_t nread)
static int
dd_copy (void)
{
- unsigned char *ibuf, *bufstart; /* Input buffer. */
- unsigned char *real_buf; /* real buffer address before alignment */
- unsigned char *real_obuf;
+ char *ibuf, *bufstart; /* Input buffer. */
+ char *real_buf; /* real buffer address before alignment */
+ char *real_obuf;
ssize_t nread; /* Bytes read in the current block. */
int exit_status = 0;
size_t page_size = getpagesize ();
@@ -918,9 +917,9 @@ dd_copy (void)
It is necessary when accessing raw (i.e. character special) disk
devices on Unixware or other SVR4-derived system. */
- real_buf = (unsigned char *) xmalloc (input_blocksize
- + 2 * SWAB_ALIGN_OFFSET
- + 2 * page_size - 1);
+ real_buf = xmalloc (input_blocksize
+ + 2 * SWAB_ALIGN_OFFSET
+ + 2 * page_size - 1);
ibuf = real_buf;
ibuf += SWAB_ALIGN_OFFSET; /* allow space for swab */
@@ -929,7 +928,7 @@ dd_copy (void)
if (conversions_mask & C_TWOBUFS)
{
/* Page-align the output buffer, too. */
- real_obuf = (unsigned char *) xmalloc (output_blocksize + page_size - 1);
+ real_obuf = xmalloc (output_blocksize + page_size - 1);
obuf = PTR_ALIGN (real_obuf, page_size);
}
else
@@ -965,7 +964,7 @@ dd_copy (void)
whatever data we are able to read is followed by zeros.
This minimizes data loss. */
if ((conversions_mask & C_SYNC) && (conversions_mask & C_NOERROR))
- memset ((char *) ibuf,
+ memset (ibuf,
(conversions_mask & (C_BLOCK | C_UNBLOCK)) ? ' ' : '\0',
input_blocksize);
@@ -1006,7 +1005,7 @@ dd_copy (void)
{
if (!(conversions_mask & C_NOERROR))
/* If C_NOERROR, we zeroed the block before reading. */
- memset ((char *) (ibuf + n_bytes_read),
+ memset (ibuf + n_bytes_read,
(conversions_mask & (C_BLOCK | C_UNBLOCK)) ? ' ' : '\0',
input_blocksize - n_bytes_read);
n_bytes_read = input_blocksize;
@@ -1063,7 +1062,7 @@ dd_copy (void)
{
/* If the final input line didn't end with a '\n', pad
the output block to `conversion_blocksize' chars. */
- unsigned int i;
+ size_t i;
for (i = col; i < conversion_blocksize; i++)
output_char (space_character);
}