rem: fp = xfopen (files[i], "r"); disorders += checkfp (fp, files[i]);
add: struct line const *line = buffer_linelim (&buf); struct line const *linebase = line - buf.nlines;   if (alloc && nonunique <= compare (&temp, line - 1)) { found_disorder: { struct line const *disorder_line = line - 1; uintmax_t disorder_line_number = buffer_linelim (&buf) - disorder_line + line_number; char hr_buf[INT_BUFSIZE_BOUND (uintmax_t)]; fprintf (stderr, _("%s: %s:%s: disorder: "), program_name, file_name, umaxtostr (disorder_line_number, hr_buf)); write_bytes (disorder_line->text, disorder_line->length, stderr, _("standard error")); ordered = false; break; } }   while (linebase < --line) if (nonunique <= compare (line, line - 1)) goto found_disorder;  line_number += buf.nlines;   if (alloc < line->length) { do { alloc *= 2; if (! alloc) { alloc = line->length; break; } } while (alloc < line->length);  temp.text = xrealloc (temp.text, alloc); } memcpy (temp.text, line->text, line->length); temp.length = line->length; if (key) { temp.keybeg = temp.text + (line->keybeg - line->text); temp.keylim = temp.text + (line->keylim - line->text); }
context: check (char **files, int nfiles){  int i, disorders = 0;  FILE *fp;  for (i = 0; i < nfiles; ++i)    {      fp = xfopen (files[i], "r");      disorders += checkfp (fp, files[i]);    }  return disorders;}